Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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.001336/0.001336, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.0014/0.0014, allocations: 190.7 kB / 24.49 MB, free: 3.941 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.7 MB / 253.3 MB, free: 12.83 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.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 43.92 kB / 371.2 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3014/0.303, allocations: 52.19 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01311/0.3161, allocations: 8.544 MB / 431.9 MB, free: 5.828 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008281/0.3244, allocations: 3.358 MB / 435.3 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002006/0.3264, allocations: 63.62 kB / 435.4 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002744/0.3292, allocations: 0.6443 MB / 436 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003821/0.333, allocations: 0.8894 MB / 436.9 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001943/0.3349, allocations: 471.2 kB / 437.4 MB, free: 404 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004704/0.3396, allocations: 2.641 MB / 440 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002529/0.3422, allocations: 1.112 MB / 441.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003043/0.3452, allocations: 1.215 MB / 442.3 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003646/0.3489, allocations: 1.545 MB / 443.9 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001245/0.3501, allocations: 307.9 kB / 444.2 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002358/0.3525, allocations: 0.5698 MB / 444.7 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00197/0.3544, allocations: 1.044 MB / 445.8 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003237/0.3577, allocations: 1.186 MB / 447 MB, free: 6.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007634/0.3653, allocations: 4.324 MB / 451.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.3653, allocations: 0 / 451.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3653, allocations: 0 / 451.3 MB, free: 2.352 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001716/0.3655, allocations: 0 / 451.3 MB, free: 2.352 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.009854/0.3753, allocations: 3.168 MB / 454.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.101e-05/0.3754, allocations: 16.03 kB / 454.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001391/0.3755, allocations: 66 kB / 454.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001305/0.3768, allocations: 371.8 kB / 454.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001463/0.3783, allocations: 350.8 kB / 455.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00471/0.383, allocations: 1.655 MB / 456.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002108/0.3832, allocations: 160.2 kB / 457.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008359/0.3841, allocations: 219.9 kB / 457.3 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007772/0.3918, allocations: 2.864 MB / 460.1 MB, free: 9.277 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001046/0.3919, allocations: 23.84 kB / 460.2 MB, free: 9.254 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003375/0.3923, allocations: 84 kB / 460.2 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001602/0.3924, allocations: 100.1 kB / 460.3 MB, free: 9.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005415/0.3979, allocations: 2.335 MB / 462.7 MB, free: 6.719 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0178/0.4157, allocations: 7.528 MB / 470.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003312/0.419, allocations: 1.391 MB / 471.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00225/0.4212, allocations: 1.102 MB / 472.7 MB, free: 12.47 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002458/0.4215, allocations: 53.28 kB / 472.8 MB, free: 12.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.841e-05/0.4215, allocations: 47.88 kB / 472.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=142): time 4.819e-06/0.4215, allocations: 0 / 472.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.04314/0.4646, allocations: 13.86 MB / 486.7 MB, free: 14.43 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/0.4647, allocations: 73.41 kB / 486.7 MB, free: 14.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004039/0.4688, allocations: 2.156 MB / 488.9 MB, free: 12.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004306/0.4692, allocations: 61.7 kB / 489 MB, free: 12.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001281/0.4705, allocations: 1.127 MB / 490.1 MB, free: 10.94 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001036/0.4715, allocations: 0.763 MB / 490.8 MB, free: 10.17 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007461/0.4723, allocations: 355.5 kB / 491.2 MB, free: 9.816 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.4724, allocations: 305.1 kB / 491.5 MB, free: 9.516 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002484/0.4749, allocations: 1.183 MB / 492.7 MB, free: 8.328 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002807/0.4777, allocations: 1.471 MB / 494.1 MB, free: 6.766 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005708/0.4834, allocations: 2.816 MB / 497 MB, free: 3.859 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.508e-05/0.4834, allocations: 0 / 497 MB, free: 3.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.00954/0.493, allocations: 4.017 MB / 0.4892 GB, free: 15.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.107e-05/0.493, allocations: 8 kB / 0.4892 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.774e-05/0.4931, allocations: 11.94 kB / 0.4893 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003286/0.4964, allocations: 1.095 MB / 0.4903 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002207/0.4986, allocations: 415.4 kB / 0.4907 GB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02064/0.5192, allocations: 14.44 MB / 0.5048 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002241/0.5214, allocations: 143.8 kB / 0.505 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003929/0.5218, allocations: 87.97 kB / 0.505 GB, free: 15.16 MB / 430.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 (190): * Single equations (assignments): 182 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,6,100.0%), (1,6,100.0%), (2,13,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001975/0.5238, allocations: 0.8057 MB / 0.5058 GB, free: 14.34 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007428/0.5246, allocations: 238.5 kB / 0.5061 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00877/0.5333, allocations: 3.856 MB / 0.5098 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.42e-05/0.5334, allocations: 20 kB / 0.5098 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.494e-05/0.5334, allocations: 12 kB / 0.5098 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.321e-05/0.5335, allocations: 11.95 kB / 0.5099 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0159/0.5494, allocations: 6.806 MB / 0.5165 GB, free: 3.273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-05/0.5494, allocations: 4.062 kB / 0.5165 GB, free: 3.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00203/0.5514, allocations: 363.4 kB / 0.5169 GB, free: 2.914 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002912/0.5543, allocations: 0.9612 MB / 0.5178 GB, free: 1.934 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000326/0.5547, allocations: 59.89 kB / 0.5179 GB, free: 1.875 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01687/0.5715, allocations: 13.52 MB / 0.5311 GB, free: 3.793 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.5715, allocations: 0 / 0.5311 GB, free: 3.793 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2422/0.8138, allocations: 5.612 MB / 0.5365 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/0.8153, allocations: 496 kB / 0.537 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006781/0.816, allocations: 43.97 kB / 0.537 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001819/0.8178, allocations: 136.4 kB / 0.5372 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006726/0.8185, allocations: 185.2 kB / 0.5374 GB, free: 106.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002602/0.8188, allocations: 73.69 kB / 0.5374 GB, free: 106.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002571/0.8213, allocations: 1.517 MB / 0.5389 GB, free: 106.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.8213, allocations: 0 / 0.5389 GB, free: 106.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003147/0.8245, allocations: 0.6932 MB / 0.5396 GB, free: 106.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (162): * Single equations (assignments): 153 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * 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): 5 systems {(1,6,100.0%), (1,6,100.0%), (2,13,100.0%), (2,12,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.01156/0.836, allocations: 6.692 MB / 0.5461 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006725/0.8428, allocations: 3.699 MB / 0.5497 GB, free: 102.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/0.8428, allocations: 4 kB / 0.5497 GB, free: 102.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004226/0.847, allocations: 2.386 MB / 0.5521 GB, free: 100.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003199/0.8502, allocations: 484.8 kB / 0.5525 GB, free: 100 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04023/0.8904, allocations: 25.42 MB / 0.5774 GB, free: 75.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001956/0.8924, allocations: 1.516 MB / 0.5788 GB, free: 73.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001633/0.894, allocations: 0.4907 MB / 0.5793 GB, free: 73.44 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00171/0.8957, allocations: 1.093 MB / 0.5804 GB, free: 72.34 MB / 446.1 MB Notification: Performance of SimCode: time 1.303e-06/0.8957, allocations: 0 / 0.5804 GB, free: 72.34 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1205/1.016, allocations: 66.48 MB / 0.6453 GB, free: 6.336 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.78/25.79, allocations: 7.844 kB / 0.6453 GB, free: 6.332 MB / 446.1 MB " [Timeout remaining time 634] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 652] Reference file matches [Calling sys.exit(0), Time elapsed: 47.335884609026834]