Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001498/0.001498, allocations: 110.6 kB / 16.92 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.74/1.74, allocations: 222.9 MB / 241.5 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001272, allocations: 50.61 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1157, allocations: 49.45 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01339/0.1292, allocations: 10.28 MB / 360.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006523/0.1357, allocations: 3.213 MB / 363.7 MB, free: 6.762 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002543/0.1383, allocations: 55.81 kB / 363.7 MB, free: 6.707 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003093/0.1415, allocations: 0.683 MB / 364.4 MB, free: 6.02 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00425/0.1458, allocations: 0.8853 MB / 365.3 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001757/0.1476, allocations: 411.5 kB / 365.7 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004802/0.1524, allocations: 3.389 MB / 369.1 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2419/0.3944, allocations: 2.598 MB / 371.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003156/0.3976, allocations: 1.504 MB / 373.2 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003894/0.4015, allocations: 1.851 MB / 375 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001918/0.4035, allocations: 397.2 kB / 375.4 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002621/0.4061, allocations: 497 kB / 375.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002552/0.4087, allocations: 1.1 MB / 377 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004868/0.4136, allocations: 1.778 MB / 378.8 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009216/0.4228, allocations: 5.151 MB / 383.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.276e-06/0.4229, allocations: 0 / 383.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.4229, allocations: 4 kB / 383.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002435/0.4232, allocations: 1.188 kB / 383.9 MB, free: 8.664 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.01272/0.4359, allocations: 3.519 MB / 387.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.436, allocations: 9.438 kB / 387.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001582/0.4376, allocations: 370.8 kB / 387.8 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001988/0.4396, allocations: 349.1 kB / 388.2 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005512/0.4451, allocations: 1.862 MB / 390 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002806/0.4454, allocations: 200.6 kB / 390.2 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001246/0.4467, allocations: 262 kB / 390.5 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009661/0.4564, allocations: 3.531 MB / 394 MB, free: 2.641 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001053/0.4565, allocations: 7.562 kB / 394 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004191/0.457, allocations: 108.8 kB / 394.1 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001077/0.4571, allocations: 114.4 kB / 394.2 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005253/0.4623, allocations: 3.095 MB / 397.3 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01949/0.4819, allocations: 10.86 MB / 408.2 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003674/0.4856, allocations: 3.071 MB / 411.3 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002185/0.4878, allocations: 1.388 MB / 412.7 MB, free: 2.695 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002803/0.4881, allocations: 125.4 kB / 412.8 MB, free: 2.555 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001858/0.49, allocations: 1.151 MB / 413.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 4.318e-06/0.49, allocations: 0 / 413.9 MB, free: 1.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.02249/0.5125, allocations: 8.874 MB / 422.8 MB, free: 8.391 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.5126, allocations: 176.2 kB / 423 MB, free: 8.18 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003877/0.5165, allocations: 1.839 MB / 424.8 MB, free: 6.34 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002409/0.5168, allocations: 53.7 kB / 424.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001318/0.5181, allocations: 1.193 MB / 426.1 MB, free: 5.082 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006592/0.5188, allocations: 0.5564 MB / 426.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007532/0.5196, allocations: 361.8 kB / 427 MB, free: 4.176 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.5197, allocations: 306.6 kB / 427.3 MB, free: 3.875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001738/0.5214, allocations: 0.9994 MB / 428.3 MB, free: 2.875 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002084/0.5235, allocations: 1.431 MB / 429.7 MB, free: 1.289 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003826/0.5274, allocations: 2.449 MB / 432.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.347e-05/0.5274, allocations: 4 kB / 432.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.007425/0.5348, allocations: 3.329 MB / 435.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.285e-05/0.5349, allocations: 8 kB / 435.5 MB, free: 11.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.951e-05/0.535, allocations: 12 kB / 435.5 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00229/0.5373, allocations: 0.8875 MB / 436.4 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/0.5388, allocations: 336.8 kB / 436.7 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01507/0.5539, allocations: 10.45 MB / 447.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002895/0.5569, allocations: 139.8 kB / 447.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004939/0.5574, allocations: 67.98 kB / 447.4 MB, free: 15.21 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 180 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(2,12,100.0%), (9,25,33.3%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003839/0.5612, allocations: 0.9151 MB / 448.3 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009126/0.5622, allocations: 201.8 kB / 448.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006887/0.5691, allocations: 3.106 MB / 451.6 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.89e-05/0.5691, allocations: 22.56 kB / 451.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-05/0.5692, allocations: 8 kB / 451.6 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.236e-05/0.5692, allocations: 7.969 kB / 451.6 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01417/0.5834, allocations: 6.264 MB / 457.9 MB, free: 4.676 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-05/0.5834, allocations: 8.047 kB / 457.9 MB, free: 4.668 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009739/0.5844, allocations: 214.1 kB / 458.1 MB, free: 4.473 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002415/0.5868, allocations: 0.9295 MB / 459 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001711/0.587, allocations: 39.98 kB / 459.1 MB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01413/0.6012, allocations: 12.03 MB / 471.1 MB, free: 6.941 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.263e-06/0.6012, allocations: 7.594 kB / 471.1 MB, free: 6.938 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008308/0.6095, allocations: 4.503 MB / 475.6 MB, free: 2.414 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001883/0.6114, allocations: 0.4984 MB / 476.1 MB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008523/0.6123, allocations: 36 kB / 476.1 MB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001686/0.614, allocations: 99.88 kB / 476.2 MB, free: 1.762 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005387/0.6146, allocations: 197 kB / 476.4 MB, free: 1.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000132/0.6147, allocations: 43.98 kB / 476.5 MB, free: 1.523 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002779/0.6175, allocations: 1.258 MB / 477.7 MB, free: 280 kB / 382.1 MB Notification: Performance of sort global known variables: time 2.285e-06/0.6175, allocations: 0 / 477.7 MB, free: 280 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.003048/0.6206, allocations: 0.6365 MB / 478.4 MB, free: 15.64 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,1,100.0%), (9,25,33.3%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008125/0.6287, allocations: 5.17 MB / 483.5 MB, free: 10.44 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007606/0.6363, allocations: 4.232 MB / 487.8 MB, free: 6.184 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.6364, allocations: 0 / 487.8 MB, free: 6.184 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003443/0.6398, allocations: 2.25 MB / 490 MB, free: 3.887 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/0.643, allocations: 0.5834 MB / 490.6 MB, free: 3.316 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04052/0.6835, allocations: 24.82 MB / 0.5033 GB, free: 8.914 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002475/0.686, allocations: 2.184 MB / 0.5055 GB, free: 6.695 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001493/0.6876, allocations: 461.5 kB / 0.5059 GB, free: 6.242 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/0.6889, allocations: 0.9991 MB / 0.5069 GB, free: 5.242 MB / 430.1 MB Notification: Performance of SimCode: time 8.02e-07/0.6889, allocations: 4 kB / 0.5069 GB, free: 5.238 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3477/1.037, allocations: 58.63 MB / 0.5642 GB, free: 135.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/12.26, allocations: 14.25 kB / 0.5642 GB, free: 135.1 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches