Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001661/0.001661, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001905/0.001906, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 58.69 kB / 307.1 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1195, allocations: 50.54 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01184/0.1314, allocations: 10.33 MB / 367.9 MB, free: 3.586 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006169/0.1376, allocations: 3.268 MB / 371.2 MB, free: 312 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001465/0.1391, allocations: 55.75 kB / 371.2 MB, free: 256 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1907/0.3299, allocations: 0.6949 MB / 371.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003239/0.3332, allocations: 0.879 MB / 372.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.3342, allocations: 424 kB / 373.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005974/0.3402, allocations: 3.415 MB / 376.6 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003196/0.3434, allocations: 2.604 MB / 379.3 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003072/0.3465, allocations: 1.517 MB / 380.8 MB, free: 8.719 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00308/0.3496, allocations: 1.855 MB / 382.6 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009254/0.3506, allocations: 397.2 kB / 383 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001407/0.352, allocations: 499 kB / 383.5 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001175/0.3532, allocations: 1.112 MB / 384.6 MB, free: 7.281 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002481/0.3557, allocations: 1.777 MB / 386.4 MB, free: 6.133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005353/0.3611, allocations: 5.173 MB / 391.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.126e-06/0.3611, allocations: 0.9688 kB / 391.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3611, allocations: 0 / 391.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001622/0.3613, allocations: 0 / 391.6 MB, free: 3.574 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.008108/0.3694, allocations: 3.538 MB / 395.1 MB, free: 1.172 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.3695, allocations: 8.594 kB / 395.1 MB, free: 1.172 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004751/0.3699, allocations: 370.4 kB / 395.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00125/0.3712, allocations: 384.3 kB / 395.8 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003476/0.3747, allocations: 1.885 MB / 397.7 MB, free: 15.42 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001719/0.3749, allocations: 194.7 kB / 397.9 MB, free: 15.33 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004444/0.3753, allocations: 261.8 kB / 398.2 MB, free: 15.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006394/0.3817, allocations: 3.531 MB / 401.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.494e-05/0.3818, allocations: 11.98 kB / 401.7 MB, free: 12.67 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002493/0.3821, allocations: 106.2 kB / 401.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001313/0.3822, allocations: 108.9 kB / 401.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005291/0.3875, allocations: 3.095 MB / 405 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01805/0.4056, allocations: 10.85 MB / 415.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003459/0.4091, allocations: 3.081 MB / 419 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002184/0.4113, allocations: 1.389 MB / 420.4 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002641/0.4116, allocations: 124.6 kB / 420.5 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001758/0.4134, allocations: 1.143 MB / 421.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 3.667e-06/0.4134, allocations: 0 / 421.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.02066/0.4341, allocations: 8.898 MB / 430.5 MB, free: 15.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.4342, allocations: 179.5 kB / 430.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003226/0.4375, allocations: 1.852 MB / 432.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002075/0.4377, allocations: 57.7 kB / 432.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001145/0.4388, allocations: 1.202 MB / 433.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005694/0.4394, allocations: 0.5573 MB / 434.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006342/0.4401, allocations: 351.3 kB / 434.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.447e-05/0.4402, allocations: 301.1 kB / 435 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.4418, allocations: 1.007 MB / 436 MB, free: 9.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002002/0.4438, allocations: 1.435 MB / 437.4 MB, free: 8.129 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003593/0.4474, allocations: 2.45 MB / 439.9 MB, free: 5.535 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.357e-05/0.4475, allocations: 4 kB / 439.9 MB, free: 5.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006275/0.4537, allocations: 3.334 MB / 443.2 MB, free: 2.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/0.4538, allocations: 12 kB / 443.2 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.461e-05/0.4538, allocations: 8 kB / 443.2 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002184/0.456, allocations: 0.8808 MB / 444.1 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001347/0.4574, allocations: 351.3 kB / 444.5 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01367/0.4711, allocations: 10.43 MB / 454.9 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/0.4735, allocations: 135.9 kB / 455 MB, free: 5.941 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003373/0.4739, allocations: 68 kB / 455.1 MB, free: 5.875 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.002307/0.4762, allocations: 0.9292 MB / 456 MB, free: 4.938 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007034/0.4769, allocations: 205.5 kB / 456.2 MB, free: 4.734 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005804/0.4827, allocations: 3.107 MB / 459.3 MB, free: 1.598 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.875e-05/0.4828, allocations: 16 kB / 459.3 MB, free: 1.582 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.66e-05/0.4828, allocations: 8 kB / 459.4 MB, free: 1.574 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.092e-05/0.4828, allocations: 7.969 kB / 459.4 MB, free: 1.566 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01236/0.4952, allocations: 6.264 MB / 465.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.4952, allocations: 0 / 465.6 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009511/0.4962, allocations: 211.7 kB / 465.8 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002308/0.4985, allocations: 0.9332 MB / 466.8 MB, free: 10.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001487/0.4987, allocations: 43.92 kB / 466.8 MB, free: 10.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01292/0.5116, allocations: 12.03 MB / 478.8 MB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.5117, allocations: 0 / 478.8 MB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007822/0.5195, allocations: 4.511 MB / 483.4 MB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001702/0.5212, allocations: 498.4 kB / 483.8 MB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009222/0.5222, allocations: 39.98 kB / 483.9 MB, free: 8.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00185/0.524, allocations: 107.9 kB / 484 MB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006894/0.5248, allocations: 192.9 kB / 484.2 MB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/0.5249, allocations: 47.98 kB / 484.2 MB, free: 8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002801/0.5277, allocations: 1.267 MB / 485.5 MB, free: 6.742 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5277, allocations: 4 kB / 485.5 MB, free: 6.738 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003845/0.5316, allocations: 0.6289 MB / 486.1 MB, free: 6.109 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.008304/0.5399, allocations: 5.178 MB / 491.3 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008026/0.548, allocations: 4.243 MB / 495.5 MB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.084e-05/0.548, allocations: 0 / 495.5 MB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003681/0.5517, allocations: 2.242 MB / 497.8 MB, free: 10.22 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003948/0.5557, allocations: 0.5696 MB / 498.4 MB, free: 9.664 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05193/0.6076, allocations: 24.91 MB / 0.511 GB, free: 15.01 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002895/0.6106, allocations: 2.196 MB / 0.5131 GB, free: 12.78 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001739/0.6124, allocations: 453.6 kB / 0.5136 GB, free: 12.34 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001674/0.614, allocations: 1.015 MB / 0.5146 GB, free: 11.32 MB / 446.1 MB Notification: Performance of SimCode: time 1.011e-06/0.6141, allocations: 0 / 0.5146 GB, free: 11.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3352/0.9493, allocations: 58.86 MB / 0.572 GB, free: 121.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/11.54, allocations: 0 / 0.572 GB, free: 121.6 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches