Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00123/0.001236, allocations: 111.7 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001226, allocations: 190 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 39.31 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09775/0.09886, allocations: 49.45 MB / 349.6 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01167/0.1106, allocations: 10.21 MB / 359.8 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006585/0.1172, allocations: 3.17 MB / 363 MB, free: 7.305 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001778/0.119, allocations: 55.75 kB / 363 MB, free: 7.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001725/0.1209, allocations: 0.5982 MB / 363.6 MB, free: 6.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002515/0.1234, allocations: 0.8044 MB / 364.4 MB, free: 5.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007692/0.1242, allocations: 367.7 kB / 364.8 MB, free: 5.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003279/0.1275, allocations: 3.385 MB / 368.2 MB, free: 2.078 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1993/0.3268, allocations: 2.603 MB / 370.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002438/0.3293, allocations: 1.519 MB / 372.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002656/0.332, allocations: 1.899 MB / 374.2 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000649/0.3326, allocations: 397.4 kB / 374.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009541/0.3336, allocations: 486.7 kB / 375 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009905/0.3346, allocations: 1.116 MB / 376.2 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001914/0.3365, allocations: 1.774 MB / 377.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004665/0.3412, allocations: 5.163 MB / 383.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3412, allocations: 0 / 383.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3412, allocations: 0 / 383.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000104/0.3413, allocations: 4 kB / 383.1 MB, free: 9.488 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.00685/0.3482, allocations: 3.512 MB / 386.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.3483, allocations: 8.812 kB / 386.6 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001038/0.3493, allocations: 353.2 kB / 387 MB, free: 7.121 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003126/0.3524, allocations: 1.859 MB / 388.8 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/0.3526, allocations: 196.1 kB / 389 MB, free: 5.812 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003839/0.353, allocations: 261.7 kB / 389.3 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006671/0.3597, allocations: 3.544 MB / 392.8 MB, free: 3.586 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.665e-05/0.3598, allocations: 6.656 kB / 392.8 MB, free: 3.582 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002415/0.3601, allocations: 107.3 kB / 392.9 MB, free: 3.504 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001213/0.3602, allocations: 111.8 kB / 393 MB, free: 3.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004797/0.365, allocations: 3.098 MB / 396.1 MB, free: 1.891 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01616/0.3812, allocations: 10.85 MB / 407 MB, free: 8.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003436/0.3847, allocations: 3.072 MB / 410.1 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00211/0.3868, allocations: 1.383 MB / 411.4 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002637/0.3871, allocations: 129.5 kB / 411.6 MB, free: 4.164 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001743/0.3888, allocations: 1.154 MB / 412.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of pre-optimization done (n=156): time 3.136e-06/0.3888, allocations: 0 / 412.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of matching and sorting (n=172): time 0.021/0.4098, allocations: 8.873 MB / 421.6 MB, free: 9.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/0.41, allocations: 184.2 kB / 421.8 MB, free: 9.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003022/0.413, allocations: 1.828 MB / 423.6 MB, free: 7.949 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002102/0.4132, allocations: 60.33 kB / 423.7 MB, free: 7.887 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001208/0.4145, allocations: 1.194 MB / 424.9 MB, free: 6.688 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005277/0.415, allocations: 0.5519 MB / 425.4 MB, free: 6.141 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005749/0.4156, allocations: 351.3 kB / 425.8 MB, free: 5.793 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.4157, allocations: 305.1 kB / 426 MB, free: 5.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0016/0.4173, allocations: 1.007 MB / 427.1 MB, free: 4.484 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/0.4191, allocations: 1.431 MB / 428.5 MB, free: 2.898 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003347/0.4225, allocations: 2.453 MB / 430.9 MB, free: 352 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.4225, allocations: 4 kB / 430.9 MB, free: 348 kB / 334.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.006154/0.4287, allocations: 3.325 MB / 434.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.715e-05/0.4287, allocations: 19.92 kB / 434.3 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.791e-05/0.4288, allocations: 12 kB / 434.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002252/0.431, allocations: 0.8887 MB / 435.2 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.4323, allocations: 332.5 kB / 435.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01156/0.4439, allocations: 10.45 MB / 446 MB, free: 1.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002209/0.4461, allocations: 131.8 kB / 446.1 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003088/0.4464, allocations: 68 kB / 446.2 MB, free: 0.8164 MB / 350.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.002007/0.4484, allocations: 0.9235 MB / 447.1 MB, free: 15.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004939/0.4489, allocations: 201.6 kB / 447.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005255/0.4542, allocations: 3.11 MB / 450.4 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.378e-05/0.4542, allocations: 16 kB / 450.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.199e-05/0.4543, allocations: 12 kB / 450.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.594e-05/0.4543, allocations: 7.969 kB / 450.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01096/0.4652, allocations: 6.25 MB / 456.7 MB, free: 6.297 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.4653, allocations: 7.938 kB / 456.7 MB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008909/0.4662, allocations: 214.9 kB / 456.9 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002191/0.4684, allocations: 0.9277 MB / 457.8 MB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001301/0.4685, allocations: 43.97 kB / 457.9 MB, free: 5.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01275/0.4813, allocations: 12.03 MB / 469.9 MB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.4813, allocations: 4 kB / 469.9 MB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007379/0.4887, allocations: 4.503 MB / 474.4 MB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001336/0.4901, allocations: 498.5 kB / 474.9 MB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003374/0.4904, allocations: 47.98 kB / 474.9 MB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.4915, allocations: 99.89 kB / 475 MB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005291/0.492, allocations: 200.5 kB / 475.2 MB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000113/0.4922, allocations: 47.98 kB / 475.3 MB, free: 3.141 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001973/0.4941, allocations: 1.251 MB / 476.5 MB, free: 1.898 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4942, allocations: 0 / 476.5 MB, free: 1.898 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002202/0.4964, allocations: 0.6367 MB / 477.2 MB, free: 1.262 MB / 382.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.0004539/0.4968, allocations: 211.7 kB / 477.4 MB, free: 1.059 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007552/0.5044, allocations: 4.244 MB / 481.6 MB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.5044, allocations: 0 / 481.6 MB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003379/0.5078, allocations: 2.246 MB / 483.9 MB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002946/0.5108, allocations: 0.5664 MB / 484.4 MB, free: 9.938 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01055/0.5213, allocations: 6.885 MB / 491.3 MB, free: 3.02 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001941/0.5233, allocations: 2.18 MB / 493.5 MB, free: 0.8086 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001678/0.525, allocations: 461.5 kB / 493.9 MB, free: 364 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005235/0.5255, allocations: 131.4 kB / 494.1 MB, free: 232 kB / 398.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5256, allocations: 0 / 494.1 MB, free: 232 kB / 398.1 MB Notification: Performance of Templates: time 0.07226/0.5978, allocations: 37.32 MB / 0.5189 GB, free: 11.41 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches