Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001821/0.001821, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002338/0.002338, allocations: 211.1 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 257.5 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 47.92 kB / 377.8 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2753/0.2768, allocations: 53.38 MB / 431.1 MB, free: 6.582 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01123/0.288, allocations: 8.604 MB / 439.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00663/0.2947, allocations: 3.552 MB / 443.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008828/0.2956, allocations: 71.56 kB / 443.4 MB, free: 10.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001604/0.2972, allocations: 0.652 MB / 444 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002052/0.2992, allocations: 0.9323 MB / 444.9 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009808/0.3002, allocations: 479.2 kB / 445.4 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002896/0.3031, allocations: 2.665 MB / 448.1 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001482/0.3046, allocations: 1.116 MB / 449.2 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001514/0.3061, allocations: 1.226 MB / 450.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002062/0.3081, allocations: 1.557 MB / 452 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003893/0.3085, allocations: 304 kB / 452.3 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009643/0.3095, allocations: 0.562 MB / 452.8 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001107/0.3106, allocations: 1.052 MB / 453.9 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00132/0.3119, allocations: 1.194 MB / 455.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004448/0.3164, allocations: 4.336 MB / 459.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3164, allocations: 0 / 459.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.3164, allocations: 0 / 459.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.175e-05/0.3164, allocations: 0 / 459.4 MB, free: 10.14 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.005827/0.3223, allocations: 3.196 MB / 462.6 MB, free: 6.891 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.3223, allocations: 16.03 kB / 462.6 MB, free: 6.875 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005046/0.3228, allocations: 347.4 kB / 463 MB, free: 6.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001045/0.3238, allocations: 374.9 kB / 463.3 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003131/0.327, allocations: 1.673 MB / 465 MB, free: 4.441 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/0.3271, allocations: 156.1 kB / 465.2 MB, free: 4.285 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003419/0.3275, allocations: 212 kB / 465.4 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00461/0.3321, allocations: 2.835 MB / 468.2 MB, free: 1.137 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.699e-05/0.3321, allocations: 7.953 kB / 468.2 MB, free: 1.129 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001888/0.3323, allocations: 80 kB / 468.3 MB, free: 1.051 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000132/0.3324, allocations: 96.05 kB / 468.4 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004014/0.3365, allocations: 2.292 MB / 470.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01287/0.3493, allocations: 7.431 MB / 478.1 MB, free: 6.996 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002882/0.3522, allocations: 1.314 MB / 479.4 MB, free: 5.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001974/0.3542, allocations: 1.023 MB / 480.4 MB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002036/0.3544, allocations: 44.97 kB / 480.5 MB, free: 4.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/0.3544, allocations: 47.5 kB / 480.5 MB, free: 4.559 MB / 382.1 MB Notification: Performance of pre-optimization done (n=116): time 3.296e-06/0.3544, allocations: 3.938 kB / 480.5 MB, free: 4.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01351/0.3679, allocations: 6.114 MB / 486.6 MB, free: 14.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.21e-05/0.368, allocations: 64.72 kB / 486.7 MB, free: 14.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003248/0.3712, allocations: 2.193 MB / 488.9 MB, free: 12.08 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001896/0.3714, allocations: 49.69 kB / 489 MB, free: 12.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/0.3724, allocations: 1.149 MB / 490.1 MB, free: 10.87 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004993/0.3729, allocations: 483.8 kB / 490.6 MB, free: 10.39 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000462/0.3734, allocations: 243.5 kB / 490.8 MB, free: 10.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001925/0.3736, allocations: 365.9 kB / 491.2 MB, free: 9.785 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/0.375, allocations: 0.7613 MB / 491.9 MB, free: 9.023 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.3765, allocations: 1.013 MB / 492.9 MB, free: 7.922 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002952/0.3795, allocations: 1.858 MB / 494.8 MB, free: 5.973 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.025e-06/0.3795, allocations: 4 kB / 494.8 MB, free: 5.969 MB / 398.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.005558/0.385, allocations: 2.758 MB / 497.6 MB, free: 3.191 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.247e-05/0.3851, allocations: 8 kB / 497.6 MB, free: 3.184 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.878e-05/0.3851, allocations: 8 kB / 497.6 MB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002169/0.3872, allocations: 0.7852 MB / 498.4 MB, free: 2.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.3885, allocations: 271.6 kB / 498.6 MB, free: 2.121 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01279/0.4013, allocations: 9.298 MB / 0.496 GB, free: 8.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/0.4027, allocations: 95.88 kB / 0.4961 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001323/0.4029, allocations: 51.98 kB / 0.4962 GB, free: 8.445 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001266/0.4041, allocations: 0.7434 MB / 0.4969 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005926/0.4047, allocations: 214.6 kB / 0.4971 GB, free: 7.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007452/0.4122, allocations: 2.473 MB / 0.4995 GB, free: 4.988 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.901e-05/0.4122, allocations: 12 kB / 0.4995 GB, free: 4.977 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.611e-05/0.4122, allocations: 12 kB / 0.4995 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-05/0.4122, allocations: 7.969 kB / 0.4995 GB, free: 4.957 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01368/0.4259, allocations: 4.653 MB / 0.5041 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.898e-06/0.4259, allocations: 3.938 kB / 0.5041 GB, free: 220 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001734/0.4277, allocations: 211.7 kB / 0.5043 GB, free: 8 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00244/0.4301, allocations: 0.6541 MB / 0.5049 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000139/0.4303, allocations: 39.92 kB / 0.505 GB, free: 15.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01036/0.4406, allocations: 8.331 MB / 0.5131 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.4406, allocations: 4.031 kB / 0.5131 GB, free: 6.637 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006949/0.4476, allocations: 3.537 MB / 0.5166 GB, free: 3.051 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001658/0.4492, allocations: 378.5 kB / 0.5169 GB, free: 2.68 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004143/0.4496, allocations: 32 kB / 0.517 GB, free: 2.648 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/0.451, allocations: 87.91 kB / 0.517 GB, free: 2.562 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004076/0.4514, allocations: 104.8 kB / 0.5171 GB, free: 2.457 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001495/0.4516, allocations: 39.98 kB / 0.5172 GB, free: 2.418 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003125/0.4547, allocations: 1.536 MB / 0.5187 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4547, allocations: 0 / 0.5187 GB, free: 0.8594 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002757/0.4575, allocations: 0.5234 MB / 0.5192 GB, free: 344 kB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.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 (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01051/0.468, allocations: 4.484 MB / 0.5236 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00468/0.4727, allocations: 2.309 MB / 0.5258 GB, free: 9.613 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.4727, allocations: 0 / 0.5258 GB, free: 9.613 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00272/0.4754, allocations: 1.46 MB / 0.5272 GB, free: 8.109 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002283/0.4777, allocations: 453 kB / 0.5277 GB, free: 7.672 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2624/0.74, allocations: 21.15 MB / 0.5483 GB, free: 99.18 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001118/0.7412, allocations: 1.391 MB / 0.5497 GB, free: 98.45 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008801/0.742, allocations: 394.6 kB / 0.5501 GB, free: 98.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008837/0.7429, allocations: 0.9863 MB / 0.551 GB, free: 97.3 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/0.7429, allocations: 0 / 0.551 GB, free: 97.3 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08773/0.8306, allocations: 55.41 MB / 0.6051 GB, free: 43.06 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.13/13.96, allocations: 11.03 kB / 0.6052 GB, free: 43.05 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 24.0169859000016]