Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 112 kB / 20.43 MB, free: 1.309 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 191.2 kB / 23.72 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 52.06 kB / 370.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2597, allocations: 52.19 MB / 422.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01216/0.2719, allocations: 9.08 MB / 431.7 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006418/0.2783, allocations: 3.17 MB / 434.9 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001313/0.2796, allocations: 55.62 kB / 434.9 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002266/0.2819, allocations: 0.7146 MB / 435.7 MB, free: 1.676 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002552/0.2844, allocations: 0.7535 MB / 436.4 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.2855, allocations: 339.3 kB / 436.7 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002992/0.2885, allocations: 2.109 MB / 438.8 MB, free: 14.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001478/0.29, allocations: 0.8246 MB / 439.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001533/0.2915, allocations: 0.9421 MB / 440.6 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002013/0.2936, allocations: 1.152 MB / 441.8 MB, free: 11.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005857/0.2941, allocations: 228 kB / 442 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.2952, allocations: 331.8 kB / 442.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001076/0.2963, allocations: 0.6816 MB / 443 MB, free: 10.26 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001749/0.298, allocations: 1.089 MB / 444.1 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003975/0.302, allocations: 3.11 MB / 447.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.302, allocations: 0 / 447.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.302, allocations: 0 / 447.2 MB, free: 6.043 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.021e-05/0.3021, allocations: 7.938 kB / 447.2 MB, free: 6.035 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004455/0.3065, allocations: 2.239 MB / 449.4 MB, free: 3.754 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.045e-05/0.3065, allocations: 8.031 kB / 449.4 MB, free: 3.746 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002836/0.3068, allocations: 228.3 kB / 449.7 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006034/0.3074, allocations: 239.5 kB / 449.9 MB, free: 3.277 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002266/0.3097, allocations: 1.16 MB / 451.1 MB, free: 2.078 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.3098, allocations: 119.2 kB / 451.2 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002311/0.31, allocations: 148 kB / 451.3 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003276/0.3133, allocations: 2.008 MB / 453.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.907e-05/0.3134, allocations: 7.953 kB / 453.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001384/0.3135, allocations: 63.94 kB / 453.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.309e-05/0.3136, allocations: 82.91 kB / 453.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002784/0.3164, allocations: 1.647 MB / 455.1 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01081/0.3272, allocations: 6.778 MB / 461.9 MB, free: 6.848 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007886/0.328, allocations: 433.6 kB / 462.3 MB, free: 6.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003886/0.3284, allocations: 249.4 kB / 462.6 MB, free: 6.168 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001845/0.3285, allocations: 36.41 kB / 462.6 MB, free: 6.133 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.3286, allocations: 39 kB / 462.7 MB, free: 6.086 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.565e-06/0.3286, allocations: 7.938 kB / 462.7 MB, free: 6.078 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.00699/0.3356, allocations: 3.161 MB / 465.8 MB, free: 2.879 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00264/0.3382, allocations: 2.227 MB / 468 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002442/0.3407, allocations: 1.616 MB / 469.7 MB, free: 14.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.715e-05/0.3407, allocations: 33.7 kB / 469.7 MB, free: 14.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008517/0.3416, allocations: 1.053 MB / 470.7 MB, free: 13.78 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002405/0.3418, allocations: 250.1 kB / 471 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004292/0.3423, allocations: 319.3 kB / 471.3 MB, free: 13.22 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.3424, allocations: 313.1 kB / 471.6 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008246/0.3432, allocations: 0.5192 MB / 472.1 MB, free: 12.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001563/0.3448, allocations: 1.461 MB / 473.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002651/0.3474, allocations: 2.138 MB / 475.7 MB, free: 7.855 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.49e-05/0.3474, allocations: 12 kB / 475.7 MB, free: 7.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003644/0.3511, allocations: 2.162 MB / 477.9 MB, free: 5.664 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.3511, allocations: 20 kB / 477.9 MB, free: 5.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.254e-05/0.3512, allocations: 32 kB / 478 MB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005421/0.3517, allocations: 230.5 kB / 478.2 MB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.3528, allocations: 391.3 kB / 478.6 MB, free: 4.996 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/0.3546, allocations: 1.76 MB / 480.3 MB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/0.3559, allocations: 139.7 kB / 480.5 MB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001233/0.356, allocations: 96 kB / 480.5 MB, free: 2.883 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009333/0.3569, allocations: 0.5867 MB / 481.1 MB, free: 2.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002515/0.3572, allocations: 159 kB / 481.3 MB, free: 2.129 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001962/0.3591, allocations: 1.108 MB / 482.4 MB, free: 1.004 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.544e-06/0.3591, allocations: 8 kB / 482.4 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.3591, allocations: 0 / 482.4 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.3592, allocations: 11.86 kB / 482.4 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005402/0.3646, allocations: 3.298 MB / 485.7 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.083e-05/0.3646, allocations: 11.98 kB / 485.7 MB, free: 13.53 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004126/0.365, allocations: 111.8 kB / 485.8 MB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005969/0.3656, allocations: 222.4 kB / 486.1 MB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.32e-05/0.3656, allocations: 16.19 kB / 486.1 MB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004127/0.3697, allocations: 3.847 MB / 489.9 MB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002209/0.372, allocations: 2.078 MB / 492 MB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002838/0.3748, allocations: 1.754 MB / 493.8 MB, free: 5.039 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007241/0.3755, allocations: 234.8 kB / 494 MB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003426/0.3759, allocations: 27.98 kB / 494 MB, free: 4.781 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006693/0.3765, allocations: 43.95 kB / 494 MB, free: 4.738 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/0.3767, allocations: 67.83 kB / 494.1 MB, free: 4.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.495e-05/0.3767, allocations: 27.94 kB / 494.1 MB, free: 4.645 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001681/0.3784, allocations: 1.066 MB / 495.2 MB, free: 3.582 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3784, allocations: 4 kB / 495.2 MB, free: 3.578 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001678/0.3801, allocations: 376 kB / 495.6 MB, free: 3.211 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003288/0.3834, allocations: 2.38 MB / 498 MB, free: 0.7344 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00255/0.3859, allocations: 1.413 MB / 499.4 MB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.3859, allocations: 7.938 kB / 499.4 MB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00128/0.3872, allocations: 0.7446 MB / 0.4884 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001917/0.3891, allocations: 413.2 kB / 0.4888 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02251/0.4116, allocations: 15.3 MB / 0.5037 GB, free: 13.58 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001257/0.4129, allocations: 1.461 MB / 0.5052 GB, free: 12.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00101/0.4139, allocations: 358 kB / 0.5055 GB, free: 11.74 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008587/0.4148, allocations: 0.6203 MB / 0.5061 GB, free: 11.12 MB / 430.1 MB Notification: Performance of SimCode: time 1.343e-06/0.4148, allocations: 3.938 kB / 0.5061 GB, free: 11.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09819/0.5129, allocations: 37.83 MB / 0.5431 GB, free: 5.648 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.2/16.71, allocations: 4 kB / 0.5431 GB, free: 5.645 MB / 462.1 MB " [Timeout remaining time 643] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad_fmu --startTime=0 --stopTime=0.04 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 19.33183219982311]