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.001453/0.001453, allocations: 114.9 kB / 18.41 MB, free: 4.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00171/0.00171, allocations: 204.5 kB / 19.36 MB, free: 3.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 61.84 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1084, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01093/0.1194, allocations: 10.34 MB / 369.2 MB, free: 2.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1786/0.298, allocations: 3.268 MB / 372.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001818/0.2999, allocations: 56.59 kB / 372.6 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002015/0.302, allocations: 0.6947 MB / 373.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002549/0.3045, allocations: 0.8817 MB / 374.1 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009319/0.3055, allocations: 418 kB / 374.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004552/0.31, allocations: 3.422 MB / 378 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003017/0.3131, allocations: 2.609 MB / 380.6 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002774/0.3159, allocations: 1.524 MB / 382.1 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003635/0.3195, allocations: 1.86 MB / 384 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001344/0.3209, allocations: 397.2 kB / 384.4 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002059/0.3229, allocations: 496.5 kB / 384.8 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001408/0.3244, allocations: 1.104 MB / 385.9 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003047/0.3274, allocations: 1.781 MB / 387.7 MB, free: 6.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00678/0.3342, allocations: 5.224 MB / 393 MB, free: 3.406 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.3342, allocations: 1.375 kB / 393 MB, free: 3.406 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3343, allocations: 0 / 393 MB, free: 3.406 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001816/0.3344, allocations: 0 / 393 MB, free: 3.406 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.009037/0.3435, allocations: 3.545 MB / 396.5 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.3435, allocations: 9.438 kB / 396.5 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001277/0.3448, allocations: 381.3 kB / 396.9 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003819/0.3487, allocations: 1.939 MB / 398.8 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001529/0.3488, allocations: 199.9 kB / 399 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004134/0.3493, allocations: 261.6 kB / 399.3 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005868/0.3551, allocations: 3.537 MB / 402.8 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-05/0.3552, allocations: 7.938 kB / 402.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002416/0.3555, allocations: 107.4 kB / 402.9 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001102/0.3556, allocations: 112.9 kB / 403 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005214/0.3608, allocations: 3.091 MB / 406.1 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01862/0.3794, allocations: 10.74 MB / 416.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003556/0.383, allocations: 3.077 MB / 419.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002093/0.3851, allocations: 1.384 MB / 421.3 MB, free: 9.652 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000288/0.3854, allocations: 129.3 kB / 421.4 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001633/0.3871, allocations: 1.148 MB / 422.6 MB, free: 8.332 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 3.076e-06/0.3871, allocations: 0 / 422.6 MB, free: 8.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.02003/0.4071, allocations: 8.887 MB / 431.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00012/0.4073, allocations: 172.2 kB / 431.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002831/0.4101, allocations: 1.844 MB / 433.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000145/0.4103, allocations: 57.7 kB / 433.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001147/0.4115, allocations: 1.207 MB / 434.8 MB, free: 11.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004972/0.412, allocations: 0.5562 MB / 435.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005884/0.4126, allocations: 356.5 kB / 435.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.864e-05/0.4127, allocations: 309.1 kB / 436 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001517/0.4142, allocations: 1.007 MB / 437 MB, free: 9.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001773/0.416, allocations: 1.438 MB / 438.4 MB, free: 8.156 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003252/0.4192, allocations: 2.442 MB / 440.9 MB, free: 5.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.635e-06/0.4193, allocations: 4 kB / 440.9 MB, free: 5.566 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.0054/0.4247, allocations: 3.326 MB / 444.2 MB, free: 2.215 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.462e-05/0.4247, allocations: 12 kB / 444.2 MB, free: 2.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.4247, allocations: 12 kB / 444.2 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00203/0.4268, allocations: 0.8907 MB / 445.1 MB, free: 1.289 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/0.428, allocations: 335.5 kB / 445.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01123/0.4392, allocations: 10.43 MB / 455.8 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001821/0.4411, allocations: 131.9 kB / 456 MB, free: 5.992 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001584/0.4412, allocations: 68 kB / 456 MB, free: 5.926 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.001597/0.4428, allocations: 0.9292 MB / 457 MB, free: 4.988 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004012/0.4432, allocations: 205.5 kB / 457.2 MB, free: 4.785 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005989/0.4492, allocations: 3.111 MB / 460.3 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.4493, allocations: 19.98 kB / 460.3 MB, free: 1.625 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/0.4493, allocations: 8 kB / 460.3 MB, free: 1.617 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.58e-05/0.4493, allocations: 7.969 kB / 460.3 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01223/0.4616, allocations: 6.226 MB / 466.5 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/0.4616, allocations: 0 / 466.5 MB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.4626, allocations: 211.7 kB / 466.8 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002265/0.4649, allocations: 0.9254 MB / 467.7 MB, free: 10.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002056/0.4651, allocations: 43.98 kB / 467.7 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01425/0.4794, allocations: 12.01 MB / 479.7 MB, free: 13.57 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/0.4794, allocations: 4.031 kB / 479.7 MB, free: 13.56 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007513/0.4869, allocations: 4.51 MB / 484.2 MB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001394/0.4883, allocations: 0.4906 MB / 484.7 MB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003053/0.4886, allocations: 39.98 kB / 484.8 MB, free: 8.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/0.4897, allocations: 103.9 kB / 484.9 MB, free: 8.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004539/0.4902, allocations: 193 kB / 485.1 MB, free: 8.152 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001299/0.4903, allocations: 47.98 kB / 485.1 MB, free: 8.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001819/0.4922, allocations: 1.263 MB / 486.4 MB, free: 6.852 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.705e-06/0.4922, allocations: 0 / 486.4 MB, free: 6.852 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002133/0.4943, allocations: 0.6406 MB / 487 MB, free: 6.211 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.0004913/0.4948, allocations: 221.1 kB / 487.2 MB, free: 5.984 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004892/0.4997, allocations: 3.246 MB / 490.5 MB, free: 2.652 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4997, allocations: 1.938 kB / 490.5 MB, free: 2.652 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003345/0.5031, allocations: 2.245 MB / 492.7 MB, free: 340 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002408/0.5055, allocations: 0.5864 MB / 493.3 MB, free: 15.76 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009274/0.5148, allocations: 5.691 MB / 499 MB, free: 10.02 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001963/0.5168, allocations: 2.192 MB / 0.4894 GB, free: 7.793 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001411/0.5182, allocations: 457.6 kB / 0.4899 GB, free: 7.344 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005021/0.5187, allocations: 131.4 kB / 0.49 GB, free: 7.215 MB / 414.1 MB Notification: Performance of SimCode: time 2.054e-06/0.5187, allocations: 0 / 0.49 GB, free: 7.215 MB / 414.1 MB Notification: Performance of Templates: time 0.06141/0.5802, allocations: 37.63 MB / 0.5268 GB, free: 1.988 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 cvode -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