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.00151/0.00151, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001817/0.001818, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 64.08 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1058, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01168/0.1176, allocations: 10.34 MB / 369.2 MB, free: 2.973 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1739/0.2916, allocations: 3.264 MB / 372.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001628/0.2932, allocations: 55.59 kB / 372.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001517/0.2948, allocations: 0.6978 MB / 373.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001953/0.2968, allocations: 0.8785 MB / 374.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007393/0.2975, allocations: 427.2 kB / 374.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003285/0.3008, allocations: 3.424 MB / 378 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002653/0.3035, allocations: 2.606 MB / 380.6 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00219/0.3057, allocations: 1.527 MB / 382.1 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002266/0.308, allocations: 1.86 MB / 384 MB, free: 8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005376/0.3085, allocations: 397.2 kB / 384.4 MB, free: 8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009996/0.3095, allocations: 492 kB / 384.8 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001156/0.3107, allocations: 1.108 MB / 386 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002114/0.3128, allocations: 1.78 MB / 387.7 MB, free: 6.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004336/0.3171, allocations: 5.224 MB / 393 MB, free: 3.426 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3172, allocations: 1.375 kB / 393 MB, free: 3.426 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3172, allocations: 0 / 393 MB, free: 3.426 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001015/0.3173, allocations: 0 / 393 MB, free: 3.426 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.006643/0.3239, allocations: 3.541 MB / 396.5 MB, free: 1.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.324, allocations: 13.75 kB / 396.5 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00107/0.3251, allocations: 380.1 kB / 396.9 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003356/0.3284, allocations: 1.94 MB / 398.8 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/0.3286, allocations: 200.2 kB / 399 MB, free: 15.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003473/0.3289, allocations: 267 kB / 399.3 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005392/0.3343, allocations: 3.533 MB / 402.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.722e-05/0.3344, allocations: 4 kB / 402.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002279/0.3346, allocations: 104 kB / 402.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001072/0.3348, allocations: 112.9 kB / 403 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004723/0.3395, allocations: 3.095 MB / 406.1 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01565/0.3551, allocations: 10.73 MB / 416.9 MB, free: 14.38 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003286/0.3585, allocations: 3.081 MB / 419.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002072/0.3606, allocations: 1.383 MB / 421.3 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002695/0.3608, allocations: 126.4 kB / 421.4 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001587/0.3624, allocations: 1.147 MB / 422.6 MB, free: 8.383 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 4.248e-06/0.3625, allocations: 4 kB / 422.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.01915/0.3816, allocations: 8.882 MB / 431.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.69e-05/0.3818, allocations: 180.2 kB / 431.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002874/0.3846, allocations: 1.848 MB / 433.5 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/0.3848, allocations: 57.7 kB / 433.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001194/0.386, allocations: 1.199 MB / 434.8 MB, free: 12.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000504/0.3865, allocations: 0.5607 MB / 435.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006304/0.3871, allocations: 355.3 kB / 435.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000182/0.3873, allocations: 306 kB / 436 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001551/0.3889, allocations: 1.007 MB / 437 MB, free: 9.812 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002059/0.391, allocations: 1.435 MB / 438.4 MB, free: 8.215 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003571/0.3946, allocations: 2.455 MB / 440.9 MB, free: 5.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.3946, allocations: 0 / 440.9 MB, free: 5.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005716/0.4003, allocations: 3.33 MB / 444.2 MB, free: 2.262 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.4003, allocations: 8 kB / 444.2 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.127e-05/0.4004, allocations: 12 kB / 444.2 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00205/0.4024, allocations: 0.8769 MB / 445.1 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.4037, allocations: 343.4 kB / 445.4 MB, free: 1.016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01166/0.4154, allocations: 10.43 MB / 455.9 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001664/0.4171, allocations: 123.9 kB / 456 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/0.4172, allocations: 76.05 kB / 456 MB, free: 5.973 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.00152/0.4187, allocations: 0.933 MB / 457 MB, free: 5.031 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003147/0.4191, allocations: 205.5 kB / 457.2 MB, free: 4.828 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004999/0.4241, allocations: 3.099 MB / 460.3 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/0.4241, allocations: 24 kB / 460.3 MB, free: 1.676 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.829e-06/0.4241, allocations: 8 kB / 460.3 MB, free: 1.668 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.4241, allocations: 7.969 kB / 460.3 MB, free: 1.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/0.4344, allocations: 6.225 MB / 466.5 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.275e-06/0.4345, allocations: 4 kB / 466.6 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009076/0.4354, allocations: 212 kB / 466.8 MB, free: 11.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00216/0.4375, allocations: 0.9251 MB / 467.7 MB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/0.4377, allocations: 47.97 kB / 467.7 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01224/0.4499, allocations: 12.01 MB / 479.7 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.45, allocations: 0 / 479.7 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006944/0.4569, allocations: 4.512 MB / 484.3 MB, free: 9.035 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001347/0.4583, allocations: 0.4906 MB / 484.7 MB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003299/0.4586, allocations: 36 kB / 484.8 MB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.4596, allocations: 107.9 kB / 484.9 MB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004836/0.4601, allocations: 200.9 kB / 485.1 MB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001073/0.4602, allocations: 47.98 kB / 485.1 MB, free: 8.141 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001944/0.4622, allocations: 1.263 MB / 486.4 MB, free: 6.887 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4622, allocations: 4 kB / 486.4 MB, free: 6.883 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002182/0.4644, allocations: 0.6328 MB / 487 MB, free: 6.25 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.0004492/0.4649, allocations: 206.2 kB / 487.2 MB, free: 6.039 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005093/0.47, allocations: 3.259 MB / 490.5 MB, free: 2.695 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.47, allocations: 0 / 490.5 MB, free: 2.695 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003291/0.4733, allocations: 2.25 MB / 492.7 MB, free: 380 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002541/0.4758, allocations: 0.5852 MB / 493.3 MB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00862/0.4845, allocations: 5.682 MB / 499 MB, free: 10.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001857/0.4864, allocations: 2.188 MB / 0.4894 GB, free: 7.844 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001282/0.4877, allocations: 457.6 kB / 0.4899 GB, free: 7.395 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004007/0.4881, allocations: 131.4 kB / 0.49 GB, free: 7.266 MB / 414.1 MB Notification: Performance of SimCode: time 1.824e-06/0.4881, allocations: 0 / 0.49 GB, free: 7.266 MB / 414.1 MB Notification: Performance of Templates: time 0.06186/0.55, allocations: 37.64 MB / 0.5268 GB, free: 2.031 MB / 446.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 -s gbode -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/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