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.001238/0.001238, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00162/0.00162, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001411/0.001411, allocations: 63.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.3322, allocations: 50.54 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_YD): time 0.01295/0.3452, allocations: 10.33 MB / 419.6 MB, free: 7.227 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007856/0.3531, allocations: 3.276 MB / 422.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002293/0.3555, allocations: 55.75 kB / 422.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002473/0.358, allocations: 0.7299 MB / 423.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003605/0.3616, allocations: 0.9244 MB / 424.6 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.3631, allocations: 419.5 kB / 425 MB, free: 1.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004625/0.3677, allocations: 3.42 MB / 428.4 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003656/0.3714, allocations: 2.608 MB / 431 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002612/0.374, allocations: 1.534 MB / 432.5 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003179/0.3772, allocations: 1.86 MB / 434.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001062/0.3783, allocations: 396 kB / 434.8 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00161/0.3799, allocations: 495.8 kB / 435.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001543/0.3815, allocations: 1.106 MB / 436.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002926/0.3844, allocations: 1.785 MB / 438.2 MB, free: 4.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005395/0.3898, allocations: 5.23 MB / 443.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.3898, allocations: 0 / 443.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3899, allocations: 3.938 kB / 443.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001329/0.39, allocations: 0 / 443.4 MB, free: 15.28 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.008175/0.3982, allocations: 3.539 MB / 446.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.3982, allocations: 8.031 kB / 446.9 MB, free: 11.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0014/0.3996, allocations: 380.9 kB / 447.3 MB, free: 11.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003578/0.4032, allocations: 1.949 MB / 449.3 MB, free: 9.281 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002662/0.4035, allocations: 197 kB / 449.5 MB, free: 9.086 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004525/0.404, allocations: 259.9 kB / 449.7 MB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006663/0.4107, allocations: 3.535 MB / 453.2 MB, free: 5.195 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.167e-05/0.4108, allocations: 8 kB / 453.3 MB, free: 5.188 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002746/0.411, allocations: 100 kB / 453.4 MB, free: 5.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001121/0.4112, allocations: 116.9 kB / 453.5 MB, free: 4.973 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005633/0.4168, allocations: 3.091 MB / 456.6 MB, free: 1.867 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01904/0.4359, allocations: 10.74 MB / 467.3 MB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00411/0.44, allocations: 3.066 MB / 470.4 MB, free: 3.559 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002288/0.4424, allocations: 1.404 MB / 471.8 MB, free: 2.164 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003075/0.4427, allocations: 126.3 kB / 471.9 MB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001727/0.4444, allocations: 1.144 MB / 473 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of pre-optimization done (n=156): time 4.118e-06/0.4444, allocations: 0 / 473 MB, free: 0.8477 MB / 382.1 MB Notification: Performance of matching and sorting (n=172): time 0.02007/0.4645, allocations: 8.886 MB / 481.9 MB, free: 7.805 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.4647, allocations: 172.2 kB / 482.1 MB, free: 7.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002939/0.4676, allocations: 1.848 MB / 483.9 MB, free: 5.754 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001864/0.4678, allocations: 57.7 kB / 484 MB, free: 5.691 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001157/0.469, allocations: 1.203 MB / 485.2 MB, free: 4.473 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005506/0.4695, allocations: 0.5545 MB / 485.8 MB, free: 3.91 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005656/0.4701, allocations: 355.3 kB / 486.1 MB, free: 3.555 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.4702, allocations: 309.1 kB / 486.4 MB, free: 3.25 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001637/0.4719, allocations: 0.9994 MB / 487.4 MB, free: 2.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001986/0.4739, allocations: 1.438 MB / 488.8 MB, free: 0.6523 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003432/0.4773, allocations: 2.446 MB / 491.3 MB, free: 14.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.278e-05/0.4774, allocations: 8 kB / 491.3 MB, free: 14.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.005675/0.483, allocations: 3.334 MB / 494.6 MB, free: 10.69 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.48e-05/0.4831, allocations: 14.66 kB / 494.6 MB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/0.4831, allocations: 12 kB / 494.7 MB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002103/0.4852, allocations: 0.873 MB / 495.5 MB, free: 9.777 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/0.4866, allocations: 339.4 kB / 495.9 MB, free: 9.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01204/0.4986, allocations: 10.43 MB / 0.4944 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.5006, allocations: 131.9 kB / 0.4945 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003276/0.501, allocations: 68 kB / 0.4946 GB, free: 14.41 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.002059/0.503, allocations: 0.933 MB / 0.4955 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006814/0.5037, allocations: 213.4 kB / 0.4957 GB, free: 13.25 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005865/0.5096, allocations: 3.107 MB / 0.4988 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.827e-05/0.5097, allocations: 16 kB / 0.4988 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.944e-05/0.5097, allocations: 8 kB / 0.4988 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.63e-05/0.5097, allocations: 7.969 kB / 0.4988 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0118/0.5215, allocations: 6.214 MB / 0.5049 GB, free: 3.762 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/0.5216, allocations: 4.062 kB / 0.5049 GB, free: 3.758 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009065/0.5225, allocations: 215.6 kB / 0.5051 GB, free: 3.547 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002477/0.525, allocations: 0.9367 MB / 0.506 GB, free: 2.594 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002196/0.5252, allocations: 39.98 kB / 0.506 GB, free: 2.555 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01449/0.5397, allocations: 12.01 MB / 0.5177 GB, free: 5.984 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.299e-06/0.5398, allocations: 4.031 kB / 0.5178 GB, free: 5.98 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007706/0.5475, allocations: 4.511 MB / 0.5222 GB, free: 1.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001561/0.5491, allocations: 0.4945 MB / 0.5226 GB, free: 0.8945 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003752/0.5495, allocations: 35.98 kB / 0.5227 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.5505, allocations: 99.89 kB / 0.5228 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005908/0.5511, allocations: 204.8 kB / 0.523 GB, free: 0.5625 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001107/0.5513, allocations: 47.98 kB / 0.523 GB, free: 0.5156 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002039/0.5533, allocations: 1.267 MB / 0.5242 GB, free: 15.25 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5533, allocations: 0 / 0.5242 GB, free: 15.25 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002454/0.5558, allocations: 0.6367 MB / 0.5249 GB, free: 14.62 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.0005262/0.5563, allocations: 212.7 kB / 0.5251 GB, free: 14.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005642/0.562, allocations: 3.253 MB / 0.5282 GB, free: 11.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.562, allocations: 0 / 0.5282 GB, free: 11.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003578/0.5656, allocations: 2.243 MB / 0.5304 GB, free: 8.738 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002907/0.5685, allocations: 0.5786 MB / 0.531 GB, free: 8.168 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01126/0.5798, allocations: 5.699 MB / 0.5366 GB, free: 2.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002737/0.5826, allocations: 2.184 MB / 0.5387 GB, free: 212 kB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.2509/0.8335, allocations: 453.9 kB / 0.5391 GB, free: 123.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006439/0.8342, allocations: 135 kB / 0.5393 GB, free: 123.2 MB / 462.1 MB Notification: Performance of SimCode: time 5.91e-07/0.8342, allocations: 2.344 kB / 0.5393 GB, free: 123.2 MB / 462.1 MB Notification: Performance of Templates: time 0.0506/0.8848, allocations: 38.22 MB / 0.5766 GB, free: 95.75 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