Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=100000,variableFilter="time|PI.x|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.w|powerSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001259/0.001258, allocations: 107.6 kB / 17.16 MB, free: 6.082 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.001239/0.001239, allocations: 194.9 kB / 18.08 MB, free: 5.285 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.942/1.942, allocations: 222.9 MB / 241.8 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 47.27 kB / 300.6 MB, free: 6.312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1376, allocations: 49.45 MB / 350.1 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01499/0.1526, allocations: 9.58 MB / 359.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.1631, allocations: 3.545 MB / 363.2 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002448/0.1656, allocations: 43.81 kB / 363.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003793/0.1695, allocations: 0.5828 MB / 363.8 MB, free: 7.043 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005108/0.1747, allocations: 0.7422 MB / 364.6 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002438/0.1771, allocations: 411.5 kB / 365 MB, free: 5.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006237/0.1834, allocations: 3.024 MB / 368 MB, free: 2.859 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00412/0.1876, allocations: 1.548 MB / 369.5 MB, free: 1.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002895/0.1905, allocations: 1.027 MB / 370.6 MB, free: 228 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2835/0.4741, allocations: 1.502 MB / 372.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001283/0.4754, allocations: 194 kB / 372.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002179/0.4776, allocations: 475 kB / 372.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001654/0.4793, allocations: 0.867 MB / 373.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002715/0.482, allocations: 1.358 MB / 374.9 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005969/0.488, allocations: 3.478 MB / 378.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.227e-05/0.4881, allocations: 1.875 kB / 378.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.4881, allocations: 1.5 kB / 378.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001958/0.4883, allocations: 0.8438 kB / 378.4 MB, free: 11.18 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.01185/0.5002, allocations: 3.168 MB / 381.6 MB, free: 9.781 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.944e-05/0.5002, allocations: 9.156 kB / 381.6 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001625/0.5019, allocations: 326.3 kB / 381.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00476/0.5066, allocations: 1.652 MB / 383.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002247/0.5069, allocations: 149.5 kB / 383.7 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009775/0.5079, allocations: 212.1 kB / 383.9 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01147/0.5194, allocations: 2.691 MB / 386.6 MB, free: 7.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001418/0.5196, allocations: 6.953 kB / 386.6 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004867/0.5201, allocations: 84.69 kB / 386.7 MB, free: 7.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002566/0.5204, allocations: 93.95 kB / 386.8 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01017/0.5306, allocations: 2.283 MB / 389.1 MB, free: 6.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03042/0.5611, allocations: 8.233 MB / 397.3 MB, free: 1.078 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005397/0.5665, allocations: 1.626 MB / 398.9 MB, free: 84 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003398/0.57, allocations: 1.093 MB / 400 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004773/0.5705, allocations: 125.1 kB / 400.2 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.79e-05/0.5706, allocations: 47.81 kB / 400.2 MB, free: 15.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 6.633e-06/0.5706, allocations: 0 / 400.2 MB, free: 15.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01968/0.5903, allocations: 6.446 MB / 406.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.989e-05/0.5904, allocations: 66.03 kB / 406.7 MB, free: 10.08 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005034/0.5955, allocations: 2.156 MB / 408.9 MB, free: 7.879 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003288/0.5958, allocations: 45.7 kB / 408.9 MB, free: 7.828 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0013/0.5971, allocations: 1.111 MB / 410 MB, free: 6.707 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00097/0.5981, allocations: 452.9 kB / 410.5 MB, free: 6.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009958/0.5991, allocations: 239.5 kB / 410.7 MB, free: 6.031 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002626/0.5994, allocations: 361.9 kB / 411.1 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001902/0.6013, allocations: 0.7613 MB / 411.8 MB, free: 4.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001982/0.6033, allocations: 1.011 MB / 412.8 MB, free: 3.816 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003932/0.6073, allocations: 1.854 MB / 414.7 MB, free: 1.898 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-05/0.6074, allocations: 8.828 kB / 414.7 MB, free: 1.891 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00833/0.6157, allocations: 2.762 MB / 417.5 MB, free: 15.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.726e-05/0.6158, allocations: 8 kB / 417.5 MB, free: 15.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.716e-05/0.6159, allocations: 15.25 kB / 417.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00398/0.6199, allocations: 0.7836 MB / 418.3 MB, free: 14.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002442/0.6224, allocations: 264.8 kB / 418.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02154/0.6439, allocations: 8.755 MB / 427.3 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003108/0.6471, allocations: 91.89 kB / 427.4 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000575/0.6477, allocations: 57.41 kB / 427.4 MB, free: 4.988 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 122 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003581/0.6513, allocations: 0.7417 MB / 428.2 MB, free: 4.25 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/0.6527, allocations: 205.5 kB / 428.4 MB, free: 4.047 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009951/0.6627, allocations: 2.493 MB / 430.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.539e-05/0.6628, allocations: 16 kB / 430.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.028e-05/0.6629, allocations: 4 kB / 430.9 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.706e-05/0.6629, allocations: 7.969 kB / 430.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01991/0.6828, allocations: 4.938 MB / 435.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-05/0.6829, allocations: 0 / 435.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001865/0.6848, allocations: 219.1 kB / 436 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003135/0.688, allocations: 0.6472 MB / 436.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003049/0.6883, allocations: 38.53 kB / 436.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0108/0.6991, allocations: 7.93 MB / 444.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.6992, allocations: 0 / 444.7 MB, free: 3.367 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007633/0.7068, allocations: 3.529 MB / 448.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001641/0.7085, allocations: 442.4 kB / 448.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008231/0.7094, allocations: 38.55 kB / 448.6 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/0.7111, allocations: 86.56 kB / 448.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004175/0.7116, allocations: 104.8 kB / 448.8 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001564/0.7117, allocations: 40.03 kB / 448.9 MB, free: 15.1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003798/0.7155, allocations: 1.515 MB / 450.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.7156, allocations: 0 / 450.4 MB, free: 13.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003562/0.7191, allocations: 0.5234 MB / 450.9 MB, free: 13.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001541/0.7207, allocations: 469.3 kB / 451.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005467/0.7262, allocations: 2.377 MB / 453.7 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.7262, allocations: 7.938 kB / 453.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003121/0.7293, allocations: 1.602 MB / 455.4 MB, free: 8.703 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00377/0.7331, allocations: 431.6 kB / 455.8 MB, free: 8.281 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01357/0.7467, allocations: 6.195 MB / 462 MB, free: 2.051 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002885/0.7497, allocations: 1.934 MB / 463.9 MB, free: 84 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009536/0.7506, allocations: 135.4 kB / 464 MB, free: 15.95 MB / 382.1 MB Notification: Performance of SimCode: time 1.213e-06/0.7507, allocations: 4 kB / 464 MB, free: 15.95 MB / 382.1 MB Notification: Performance of Templates: time 0.1236/0.8742, allocations: 63.7 MB / 0.5154 GB, free: 312 kB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches