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.001015/0.001015, allocations: 93.67 kB / 16.3 MB, free: 5.996 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.001439/0.00144, allocations: 184 kB / 17.2 MB, free: 5.914 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.504/1.504, allocations: 223.2 MB / 241.1 MB, free: 5.367 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003091/0.0003091, allocations: 7.047 kB / 300.7 MB, free: 6.082 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1145, allocations: 50.42 MB / 351.1 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses): time 0.01003/0.1246, allocations: 7.837 MB / 359 MB, free: 3.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008127/0.1328, allocations: 3.415 MB / 362.4 MB, free: 412 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001829/0.1346, allocations: 43.81 kB / 362.4 MB, free: 368 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002363/0.137, allocations: 0.5558 MB / 363 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003545/0.1406, allocations: 0.6932 MB / 363.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00147/0.1421, allocations: 315.4 kB / 364 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003805/0.1459, allocations: 1.712 MB / 365.7 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002512/0.1484, allocations: 1.315 MB / 367 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001728/0.1502, allocations: 0.8406 MB / 367.9 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002184/0.1524, allocations: 1.101 MB / 369 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006487/0.153, allocations: 135.9 kB / 369.1 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001309/0.1543, allocations: 339.7 kB / 369.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001284/0.1556, allocations: 0.7829 MB / 370.2 MB, free: 8.539 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001051/0.1567, allocations: 0.512 MB / 370.7 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00415/0.1609, allocations: 3.346 MB / 374.1 MB, free: 4.664 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1609, allocations: 0 / 374.1 MB, free: 4.664 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1609, allocations: 0 / 374.1 MB, free: 4.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001797/0.1611, allocations: 0 / 374.1 MB, free: 4.664 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.006836/0.1679, allocations: 2.722 MB / 376.8 MB, free: 1.875 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.168, allocations: 8.031 kB / 376.8 MB, free: 1.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001571/0.1696, allocations: 324.3 kB / 377.1 MB, free: 1.547 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004375/0.174, allocations: 1.615 MB / 378.7 MB, free: 15.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/0.1742, allocations: 152 kB / 378.9 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007921/0.175, allocations: 207.8 kB / 379.1 MB, free: 15.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005986/0.181, allocations: 2.667 MB / 381.8 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.173e-05/0.1811, allocations: 7.906 kB / 381.8 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001884/0.1813, allocations: 80 kB / 381.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001174/0.1814, allocations: 99.92 kB / 381.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0042/0.1856, allocations: 2.268 MB / 384.2 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01453/0.2001, allocations: 8.193 MB / 392.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00308/0.2033, allocations: 1.598 MB / 394 MB, free: 272 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000279/0.2036, allocations: 126.1 kB / 394.1 MB, free: 128 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.324e-05/0.2036, allocations: 47.56 kB / 394.2 MB, free: 72 kB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.878e-06/0.2036, allocations: 0 / 394.2 MB, free: 72 kB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01432/0.218, allocations: 6.691 MB / 400.9 MB, free: 9.199 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.873e-05/0.2181, allocations: 64.72 kB / 400.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002919/0.221, allocations: 2.106 MB / 403 MB, free: 6.969 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001482/0.2212, allocations: 49.7 kB / 403.1 MB, free: 6.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008366/0.222, allocations: 1.096 MB / 404.2 MB, free: 5.805 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004032/0.2224, allocations: 465.3 kB / 404.6 MB, free: 5.344 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.363e-05/0.2225, allocations: 24 kB / 404.7 MB, free: 5.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.2227, allocations: 365.9 kB / 405 MB, free: 4.957 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.224, allocations: 0.7535 MB / 405.8 MB, free: 4.203 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/0.2254, allocations: 1.01 MB / 406.8 MB, free: 3.102 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.2268, allocations: 0.8926 MB / 407.7 MB, free: 2.207 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.2268, allocations: 4 kB / 407.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.005062/0.2319, allocations: 2.772 MB / 410.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.232, allocations: 12.03 kB / 410.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.232, allocations: 4 kB / 410.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001964/0.234, allocations: 0.8014 MB / 411.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/0.2351, allocations: 279.5 kB / 411.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01153/0.2466, allocations: 9.277 MB / 420.8 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.2481, allocations: 91.89 kB / 420.9 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001275/0.2482, allocations: 55.98 kB / 421 MB, free: 4.613 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (124): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001295/0.2495, allocations: 0.7356 MB / 421.7 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003743/0.2499, allocations: 205.5 kB / 421.9 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004297/0.2542, allocations: 2.508 MB / 424.4 MB, free: 1.137 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.822e-05/0.2542, allocations: 16 kB / 424.4 MB, free: 1.121 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.2543, allocations: 8 kB / 424.4 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.2543, allocations: 11.97 kB / 424.4 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2194/0.4737, allocations: 4.874 MB / 429.3 MB, free: 62.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.4737, allocations: 7.5 kB / 429.3 MB, free: 62.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009523/0.4747, allocations: 211.2 kB / 429.5 MB, free: 62.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001813/0.4765, allocations: 0.6718 MB / 430.2 MB, free: 62.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001077/0.4766, allocations: 36.03 kB / 430.2 MB, free: 62.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009177/0.4858, allocations: 8.322 MB / 438.5 MB, free: 58.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4859, allocations: 5.312 kB / 438.6 MB, free: 58.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006453/0.4923, allocations: 3.62 MB / 442.2 MB, free: 57.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001158/0.4935, allocations: 446.5 kB / 442.6 MB, free: 57.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00022/0.4937, allocations: 30.31 kB / 442.6 MB, free: 57.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008856/0.4946, allocations: 93.55 kB / 442.7 MB, free: 57.39 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003087/0.495, allocations: 101.8 kB / 442.8 MB, free: 57.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.241e-05/0.4951, allocations: 43.34 kB / 442.9 MB, free: 57.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001855/0.4969, allocations: 1.475 MB / 444.3 MB, free: 56.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.4969, allocations: 0 / 444.3 MB, free: 56.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001743/0.4987, allocations: 0.5216 MB / 444.9 MB, free: 56.79 MB / 350.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 (94): * Single equations (assignments): 88 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 16} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001018/0.4997, allocations: 423.8 kB / 445.3 MB, free: 56.63 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003816/0.5035, allocations: 2.399 MB / 447.7 MB, free: 55.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5036, allocations: 0 / 447.7 MB, free: 55.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0022/0.5058, allocations: 1.655 MB / 449.3 MB, free: 54.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001846/0.5076, allocations: 428.6 kB / 449.8 MB, free: 54.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007357/0.515, allocations: 5.997 MB / 455.8 MB, free: 49.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001355/0.5164, allocations: 2.002 MB / 457.8 MB, free: 47.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001312/0.5177, allocations: 379.6 kB / 458.1 MB, free: 47.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003036/0.518, allocations: 131.4 kB / 458.3 MB, free: 46.93 MB / 350.1 MB Notification: Performance of SimCode: time 1.713e-06/0.518, allocations: 0 / 458.3 MB, free: 46.93 MB / 350.1 MB Notification: Performance of Templates: time 0.03937/0.5574, allocations: 26.97 MB / 485.2 MB, free: 20.18 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../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