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: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001208/0.001208, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 202 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 59.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2929, allocations: 50.54 MB / 409.3 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01239/0.3053, allocations: 10.33 MB / 419.6 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007669/0.313, allocations: 3.276 MB / 422.9 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001908/0.315, allocations: 59.75 kB / 422.9 MB, free: 3.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001976/0.317, allocations: 0.6947 MB / 423.6 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002636/0.3196, allocations: 0.8776 MB / 424.5 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.3207, allocations: 431.4 kB / 424.9 MB, free: 1.871 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003747/0.3244, allocations: 3.413 MB / 428.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002776/0.3272, allocations: 2.604 MB / 430.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00199/0.3293, allocations: 1.53 MB / 432.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00231/0.3316, allocations: 1.856 MB / 434.3 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000518/0.3321, allocations: 396 kB / 434.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009073/0.333, allocations: 491.8 kB / 435.2 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001046/0.3341, allocations: 1.118 MB / 436.3 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001906/0.336, allocations: 1.777 MB / 438.1 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004873/0.3409, allocations: 5.23 MB / 443.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.3409, allocations: 0 / 443.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.3409, allocations: 0 / 443.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001145/0.3411, allocations: 0 / 443.3 MB, free: 15.36 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: 658 * Number of variables: 658 Notification: Performance of Generate backend data structure: time 0.00711/0.3482, allocations: 3.551 MB / 446.9 MB, free: 11.74 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.3482, allocations: 8.031 kB / 446.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00113/0.3494, allocations: 384.9 kB / 447.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003538/0.3529, allocations: 1.941 MB / 449.2 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.3531, allocations: 201 kB / 449.4 MB, free: 9.156 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003837/0.3535, allocations: 251.9 kB / 449.6 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006247/0.3597, allocations: 3.535 MB / 453.2 MB, free: 5.273 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.892e-05/0.3598, allocations: 11.92 kB / 453.2 MB, free: 5.262 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002346/0.3601, allocations: 100 kB / 453.3 MB, free: 5.164 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001136/0.3602, allocations: 116.9 kB / 453.4 MB, free: 5.047 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005089/0.3653, allocations: 3.091 MB / 456.5 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01754/0.3829, allocations: 10.74 MB / 467.2 MB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003348/0.3862, allocations: 3.074 MB / 470.3 MB, free: 3.625 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002062/0.3883, allocations: 1.392 MB / 471.7 MB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002713/0.3886, allocations: 130.4 kB / 471.8 MB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001691/0.3903, allocations: 1.152 MB / 473 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=156): time 3.126e-06/0.3903, allocations: 0 / 473 MB, free: 0.9141 MB / 382.1 MB Notification: Performance of matching and sorting (n=172): time 0.02075/0.4111, allocations: 8.88 MB / 481.8 MB, free: 7.879 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.4112, allocations: 180.2 kB / 482 MB, free: 7.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002897/0.4141, allocations: 1.844 MB / 483.9 MB, free: 5.824 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002159/0.4144, allocations: 57.7 kB / 483.9 MB, free: 5.762 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001123/0.4155, allocations: 1.203 MB / 485.1 MB, free: 4.543 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005431/0.4161, allocations: 0.5545 MB / 485.7 MB, free: 3.98 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006237/0.4167, allocations: 363.3 kB / 486 MB, free: 3.617 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.4168, allocations: 301.1 kB / 486.3 MB, free: 3.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001746/0.4186, allocations: 0.9994 MB / 487.3 MB, free: 2.32 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002065/0.4207, allocations: 1.43 MB / 488.8 MB, free: 0.7305 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00387/0.4245, allocations: 2.45 MB / 491.2 MB, free: 14.13 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.496e-06/0.4246, allocations: 4 kB / 491.2 MB, free: 14.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005998/0.4306, allocations: 3.33 MB / 494.5 MB, free: 10.77 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.045e-05/0.4306, allocations: 12 kB / 494.6 MB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.085e-05/0.4306, allocations: 8 kB / 494.6 MB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002107/0.4328, allocations: 0.8958 MB / 495.5 MB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.434, allocations: 335.5 kB / 495.8 MB, free: 9.516 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0133/0.4473, allocations: 10.42 MB / 0.4943 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002179/0.4496, allocations: 139.9 kB / 0.4945 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001529/0.4497, allocations: 67.98 kB / 0.4945 GB, free: 14.47 MB / 430.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.001925/0.4517, allocations: 0.9214 MB / 0.4954 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004212/0.4521, allocations: 209.4 kB / 0.4956 GB, free: 13.34 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005587/0.4577, allocations: 3.115 MB / 0.4987 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.999e-05/0.4578, allocations: 16 kB / 0.4987 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.4578, allocations: 8 kB / 0.4987 GB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/0.4579, allocations: 7.969 kB / 0.4987 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01131/0.4692, allocations: 6.218 MB / 0.5048 GB, free: 3.832 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.4692, allocations: 4 kB / 0.5048 GB, free: 3.828 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009542/0.4702, allocations: 215.6 kB / 0.505 GB, free: 3.617 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002376/0.4726, allocations: 0.9292 MB / 0.5059 GB, free: 2.672 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.4727, allocations: 35.98 kB / 0.5059 GB, free: 2.637 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01363/0.4863, allocations: 12.02 MB / 0.5177 GB, free: 6.055 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.4864, allocations: 4 kB / 0.5177 GB, free: 6.051 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007234/0.4936, allocations: 4.507 MB / 0.5221 GB, free: 1.484 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/0.4949, allocations: 0.4945 MB / 0.5226 GB, free: 0.9688 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002585/0.4952, allocations: 36 kB / 0.5226 GB, free: 0.9336 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.4962, allocations: 103.9 kB / 0.5227 GB, free: 0.832 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005983/0.4968, allocations: 193 kB / 0.5229 GB, free: 0.6445 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/0.4969, allocations: 43.98 kB / 0.5229 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001887/0.4988, allocations: 1.271 MB / 0.5242 GB, free: 15.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4988, allocations: 0 / 0.5242 GB, free: 15.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001913/0.5007, allocations: 0.6406 MB / 0.5248 GB, free: 14.7 MB / 462.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.0003837/0.5011, allocations: 221.2 kB / 0.525 GB, free: 14.48 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005185/0.5063, allocations: 3.254 MB / 0.5282 GB, free: 11.13 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.5064, allocations: 4 kB / 0.5282 GB, free: 11.12 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00332/0.5097, allocations: 2.234 MB / 0.5304 GB, free: 8.812 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00249/0.5122, allocations: 0.5822 MB / 0.5309 GB, free: 8.238 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009419/0.5216, allocations: 5.692 MB / 0.5365 GB, free: 2.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001828/0.5235, allocations: 2.188 MB / 0.5386 GB, free: 280 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.2187/0.7422, allocations: 454.2 kB / 0.5391 GB, free: 123.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007331/0.7429, allocations: 131.2 kB / 0.5392 GB, free: 123.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.353e-06/0.743, allocations: 0 / 0.5392 GB, free: 123.1 MB / 462.1 MB Notification: Performance of Templates: time 0.05383/0.7968, allocations: 38.93 MB / 0.5772 GB, free: 95.13 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_YD/IMC_YD.csv","/var/lib/jenkins/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