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.001546/0.001546, allocations: 113.4 kB / 17.99 MB, free: 5.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001646/0.001646, allocations: 205.8 kB / 18.92 MB, free: 4.465 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.4 MB / 247.1 MB, free: 9.059 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 70.2 kB / 307.2 MB, free: 0.6836 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.118, allocations: 50.53 MB / 357.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01298/0.1311, allocations: 10.26 MB / 367.9 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006776/0.1379, allocations: 3.245 MB / 371.2 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001943/0.1399, allocations: 51.75 kB / 371.2 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1886/0.3286, allocations: 0.6098 MB / 371.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003402/0.332, allocations: 0.7991 MB / 372.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.3331, allocations: 376.3 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004579/0.3377, allocations: 3.428 MB / 376.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003265/0.341, allocations: 2.612 MB / 379.1 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003259/0.3442, allocations: 1.542 MB / 380.6 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003662/0.3479, allocations: 1.896 MB / 382.5 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001019/0.349, allocations: 400.4 kB / 382.9 MB, free: 8.016 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001647/0.3506, allocations: 497.3 kB / 383.4 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001119/0.3518, allocations: 1.113 MB / 384.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002872/0.3547, allocations: 1.784 MB / 386.3 MB, free: 6.246 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005152/0.3598, allocations: 4.333 MB / 390.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.3599, allocations: 3.984 kB / 390.6 MB, free: 4.559 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.3599, allocations: 1.625 kB / 390.6 MB, free: 4.559 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001816/0.3601, allocations: 0 / 390.6 MB, free: 4.559 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.00932/0.3694, allocations: 3.536 MB / 394.1 MB, free: 2.156 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/0.3694, allocations: 14.31 kB / 394.2 MB, free: 2.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001449/0.3709, allocations: 383.8 kB / 394.5 MB, free: 1.969 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004037/0.375, allocations: 1.89 MB / 396.4 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001667/0.3752, allocations: 194.7 kB / 396.6 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004755/0.3756, allocations: 264.4 kB / 396.9 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006471/0.3821, allocations: 3.527 MB / 400.4 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.026e-05/0.3822, allocations: 15.2 kB / 400.4 MB, free: 14.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002562/0.3825, allocations: 104.3 kB / 400.5 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001234/0.3826, allocations: 110.8 kB / 400.6 MB, free: 14.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006019/0.3886, allocations: 3.093 MB / 403.7 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02162/0.4103, allocations: 10.87 MB / 414.6 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00443/0.4148, allocations: 3.073 MB / 417.7 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0027/0.4175, allocations: 1.38 MB / 419 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003488/0.4179, allocations: 138.4 kB / 419.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002104/0.42, allocations: 1.143 MB / 420.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of pre-optimization done (n=156): time 3.597e-06/0.42, allocations: 0 / 420.3 MB, free: 10.2 MB / 334.1 MB Notification: Performance of matching and sorting (n=172): time 0.02253/0.4426, allocations: 8.887 MB / 429.2 MB, free: 1.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001708/0.4428, allocations: 176.2 kB / 429.4 MB, free: 0.957 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003299/0.4461, allocations: 1.853 MB / 431.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003556/0.4465, allocations: 61.69 kB / 431.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001293/0.4478, allocations: 1.198 MB / 432.5 MB, free: 13.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007391/0.4485, allocations: 0.5641 MB / 433 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006383/0.4492, allocations: 347.3 kB / 433.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001384/0.4493, allocations: 305.1 kB / 433.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001775/0.4511, allocations: 1.003 MB / 434.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002154/0.4533, allocations: 1.431 MB / 436.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003944/0.4572, allocations: 2.454 MB / 438.6 MB, free: 7.438 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.325e-05/0.4573, allocations: 4 kB / 438.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006467/0.4637, allocations: 3.33 MB / 441.9 MB, free: 4.078 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.373e-05/0.4638, allocations: 8 kB / 441.9 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.065e-05/0.4638, allocations: 12 kB / 441.9 MB, free: 4.059 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00239/0.4662, allocations: 0.8886 MB / 442.8 MB, free: 3.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001416/0.4677, allocations: 335.4 kB / 443.1 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01374/0.4814, allocations: 10.44 MB / 453.6 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002208/0.4837, allocations: 131.9 kB / 453.7 MB, free: 7.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000245/0.4839, allocations: 68 kB / 453.8 MB, free: 7.785 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.002084/0.486, allocations: 0.9292 MB / 454.7 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005562/0.4866, allocations: 209.5 kB / 454.9 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005908/0.4925, allocations: 3.103 MB / 458 MB, free: 3.508 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.997e-05/0.4925, allocations: 16 kB / 458 MB, free: 3.492 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.018e-05/0.4926, allocations: 8 kB / 458 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.955e-05/0.4926, allocations: 7.969 kB / 458 MB, free: 3.477 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01284/0.5054, allocations: 6.277 MB / 464.3 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/0.5055, allocations: 3.984 kB / 464.3 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009898/0.5065, allocations: 207.7 kB / 464.5 MB, free: 12.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002523/0.509, allocations: 0.9293 MB / 465.5 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002251/0.5093, allocations: 43.98 kB / 465.5 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0146/0.5239, allocations: 12.03 MB / 477.5 MB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/0.5239, allocations: 4.031 kB / 477.5 MB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008248/0.5322, allocations: 4.496 MB / 482 MB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/0.5337, allocations: 0.4984 MB / 482.5 MB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003746/0.5341, allocations: 36 kB / 482.6 MB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001068/0.5352, allocations: 103.9 kB / 482.7 MB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005651/0.5357, allocations: 196.9 kB / 482.9 MB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/0.5359, allocations: 43.98 kB / 482.9 MB, free: 9.906 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002198/0.5381, allocations: 1.271 MB / 484.2 MB, free: 8.645 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5381, allocations: 0 / 484.2 MB, free: 8.645 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00274/0.5408, allocations: 0.6367 MB / 484.8 MB, free: 8.008 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.0005263/0.5414, allocations: 218.1 kB / 485 MB, free: 7.789 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008698/0.5501, allocations: 4.235 MB / 489.3 MB, free: 3.469 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.5501, allocations: 0.625 kB / 489.3 MB, free: 3.469 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003979/0.5541, allocations: 2.202 MB / 491.5 MB, free: 1.191 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003469/0.5576, allocations: 0.5797 MB / 492 MB, free: 0.625 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.5706, allocations: 6.895 MB / 498.9 MB, free: 9.68 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002299/0.5729, allocations: 2.157 MB / 0.4893 GB, free: 7.488 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007818/0.5737, allocations: 135.4 kB / 0.4895 GB, free: 7.355 MB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5737, allocations: 0 / 0.4895 GB, free: 7.355 MB / 414.1 MB Notification: Performance of Templates: time 0.3027/0.8764, allocations: 103.2 MB / 0.5902 GB, free: 100.9 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 -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.1.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