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.001547/0.001547, allocations: 112.1 kB / 17.06 MB, free: 5.957 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.001812/0.001812, allocations: 198.8 kB / 18 MB, free: 5.047 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.342/1.342, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 51.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2538/0.255, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01144/0.2665, allocations: 10.3 MB / 410.5 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006073/0.2726, allocations: 3.197 MB / 413.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001269/0.2739, allocations: 59.75 kB / 413.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001701/0.2757, allocations: 0.7299 MB / 414.5 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002375/0.2781, allocations: 0.9205 MB / 415.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008592/0.2789, allocations: 407.4 kB / 415.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003755/0.2827, allocations: 3.401 MB / 419.2 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002825/0.2855, allocations: 2.603 MB / 421.8 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002039/0.2876, allocations: 1.519 MB / 423.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002345/0.29, allocations: 1.856 MB / 425.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005648/0.2905, allocations: 396 kB / 425.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008558/0.2914, allocations: 487.8 kB / 426.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009913/0.2924, allocations: 1.103 MB / 427.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001968/0.2944, allocations: 1.773 MB / 429 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005013/0.2994, allocations: 5.232 MB / 434.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.2994, allocations: 0 / 434.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2995, allocations: 0 / 434.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001032/0.2996, allocations: 0 / 434.2 MB, free: 6.676 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.007315/0.3069, allocations: 3.602 MB / 437.8 MB, free: 3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.3069, allocations: 15.97 kB / 437.8 MB, free: 2.984 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005198/0.3075, allocations: 367 kB / 438.2 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008909/0.3084, allocations: 374.8 kB / 438.5 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00345/0.3118, allocations: 1.923 MB / 440.5 MB, free: 280 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.312, allocations: 193 kB / 440.6 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004627/0.3125, allocations: 267.9 kB / 440.9 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00585/0.3183, allocations: 3.535 MB / 444.4 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.549e-05/0.3184, allocations: 11.89 kB / 444.5 MB, free: 12.17 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002434/0.3187, allocations: 111.9 kB / 444.6 MB, free: 12.06 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001061/0.3188, allocations: 108.9 kB / 444.7 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005319/0.3241, allocations: 3.095 MB / 447.8 MB, free: 8.844 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01755/0.3417, allocations: 10.75 MB / 458.5 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003411/0.3451, allocations: 3.086 MB / 461.6 MB, free: 10.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002227/0.3474, allocations: 1.387 MB / 463 MB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000277/0.3477, allocations: 127.5 kB / 463.1 MB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001769/0.3495, allocations: 1.152 MB / 464.3 MB, free: 7.805 MB / 382.1 MB Notification: Performance of pre-optimization done (n=156): time 3.426e-06/0.3495, allocations: 0 / 464.3 MB, free: 7.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=172): time 0.02005/0.3696, allocations: 8.921 MB / 473.2 MB, free: 14.73 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.3697, allocations: 180.2 kB / 473.4 MB, free: 14.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003382/0.3731, allocations: 1.843 MB / 475.2 MB, free: 12.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001487/0.3733, allocations: 53.7 kB / 475.3 MB, free: 12.61 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001127/0.3744, allocations: 1.214 MB / 476.5 MB, free: 11.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005271/0.3749, allocations: 0.5927 MB / 477.1 MB, free: 10.79 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005618/0.3755, allocations: 359.4 kB / 477.4 MB, free: 10.43 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.364e-05/0.3756, allocations: 301.1 kB / 477.7 MB, free: 10.13 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0016/0.3772, allocations: 0.9994 MB / 478.7 MB, free: 9.133 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/0.3791, allocations: 1.43 MB / 480.1 MB, free: 7.547 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00345/0.3826, allocations: 2.454 MB / 482.6 MB, free: 4.945 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.3826, allocations: 0 / 482.6 MB, free: 4.945 MB / 398.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005715/0.3883, allocations: 3.347 MB / 485.9 MB, free: 1.574 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.742e-05/0.3884, allocations: 8 kB / 486 MB, free: 1.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.684e-05/0.3884, allocations: 12 kB / 486 MB, free: 1.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002203/0.3906, allocations: 0.8877 MB / 486.9 MB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.3919, allocations: 339.5 kB / 487.2 MB, free: 332 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01247/0.4044, allocations: 10.42 MB / 497.6 MB, free: 5.484 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001781/0.4062, allocations: 131.9 kB / 497.7 MB, free: 5.355 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001951/0.4064, allocations: 75.98 kB / 497.8 MB, free: 5.281 MB / 414.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.001768/0.4082, allocations: 0.9214 MB / 498.7 MB, free: 4.348 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004364/0.4086, allocations: 218.6 kB / 498.9 MB, free: 4.133 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005197/0.4138, allocations: 3.111 MB / 0.4903 GB, free: 0.9883 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.559e-05/0.4138, allocations: 16 kB / 0.4903 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.173e-05/0.4139, allocations: 8 kB / 0.4903 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-05/0.4139, allocations: 7.969 kB / 0.4903 GB, free: 0.957 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01083/0.4247, allocations: 6.218 MB / 0.4964 GB, free: 10.63 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.323e-06/0.4248, allocations: 0 / 0.4964 GB, free: 10.63 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008894/0.4257, allocations: 219.9 kB / 0.4966 GB, free: 10.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002321/0.428, allocations: 0.929 MB / 0.4975 GB, free: 9.469 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001412/0.4282, allocations: 43.92 kB / 0.4975 GB, free: 9.426 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01376/0.4419, allocations: 12.03 MB / 0.5093 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.442, allocations: 0 / 0.5093 GB, free: 12.83 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007974/0.45, allocations: 4.516 MB / 0.5137 GB, free: 8.254 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/0.4515, allocations: 0.4995 MB / 0.5142 GB, free: 7.734 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006027/0.4521, allocations: 39.98 kB / 0.5142 GB, free: 7.695 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/0.4535, allocations: 103.9 kB / 0.5143 GB, free: 7.594 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000537/0.4541, allocations: 200.9 kB / 0.5145 GB, free: 7.398 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.4542, allocations: 47.98 kB / 0.5146 GB, free: 7.352 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002455/0.4567, allocations: 1.258 MB / 0.5158 GB, free: 6.102 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4567, allocations: 0 / 0.5158 GB, free: 6.102 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002622/0.4593, allocations: 0.6328 MB / 0.5164 GB, free: 5.469 MB / 446.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.008608/0.4679, allocations: 5.182 MB / 0.5215 GB, free: 224 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006259/0.4742, allocations: 3.26 MB / 0.5247 GB, free: 12.87 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.4743, allocations: 0 / 0.5247 GB, free: 12.87 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003738/0.478, allocations: 2.259 MB / 0.5269 GB, free: 10.54 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003848/0.4819, allocations: 0.5733 MB / 0.5274 GB, free: 9.973 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.245/0.7269, allocations: 22.44 MB / 0.5493 GB, free: 127.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001356/0.7283, allocations: 2.182 MB / 0.5515 GB, free: 126.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001105/0.7294, allocations: 457.9 kB / 0.5519 GB, free: 126.8 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/0.7305, allocations: 1.006 MB / 0.5529 GB, free: 125.9 MB / 462.1 MB Notification: Performance of SimCode: time 7.21e-07/0.7305, allocations: 4 kB / 0.5529 GB, free: 125.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09316/0.8236, allocations: 59.68 MB / 0.6112 GB, free: 67.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.42, allocations: 26.67 kB / 0.6112 GB, free: 67.28 MB / 462.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