Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|PIQS.x|imcQS.rotorCage.port_p.reference.gamma|loadInertiaQS.w|powerSensorQS.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200000,variableFilter="time|PIQS.x|imcQS.rotorCage.port_p.reference.gamma|loadInertiaQS.w|powerSensorQS.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009552/0.0009552, allocations: 93.31 kB / 17.31 MB, free: 6.535 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.001035/0.001035, allocations: 175.5 kB / 18.21 MB, free: 5.684 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.096/1.096, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001963/0.0001963, allocations: 11.94 kB / 302.1 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06854/0.06875, allocations: 50.41 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.1326/0.2014, allocations: 23.32 MB / 375.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.2116, allocations: 7.675 MB / 383.5 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001591/0.2132, allocations: 170.2 kB / 383.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002874/0.2161, allocations: 1.763 MB / 385.4 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00489/0.221, allocations: 2.71 MB / 388.2 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002573/0.2236, allocations: 1.589 MB / 389.7 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008268/0.2319, allocations: 10.96 MB / 400.7 MB, free: 1.105 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02805/0.2599, allocations: 23.54 MB / 424.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005005/0.2649, allocations: 4.173 MB / 428.4 MB, free: 9.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004614/0.2696, allocations: 5 MB / 433.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007886/0.2704, allocations: 0.6602 MB / 434.1 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002003/0.2724, allocations: 1.063 MB / 435.1 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001429/0.2738, allocations: 2.095 MB / 437.2 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003771/0.2776, allocations: 4.998 MB / 442.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01376/0.2914, allocations: 19.61 MB / 461.8 MB, free: 8.262 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.2914, allocations: 0 / 461.8 MB, free: 8.262 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2914, allocations: 0 / 461.8 MB, free: 8.262 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002243/0.2916, allocations: 4 kB / 461.8 MB, free: 8.258 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.02312/0.3147, allocations: 11.24 MB / 473.1 MB, free: 12.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.465e-05/0.3148, allocations: 8.031 kB / 473.1 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02928/0.3441, allocations: 6.235 MB / 479.3 MB, free: 6.656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009314/0.3534, allocations: 7.096 MB / 486.4 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004433/0.3539, allocations: 0.7224 MB / 487.2 MB, free: 14.76 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001372/0.3552, allocations: 0.953 MB / 488.1 MB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02238/0.3776, allocations: 16.15 MB / 0.4924 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001554/0.3778, allocations: 15.84 kB / 0.4925 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009148/0.3787, allocations: 400 kB / 0.4928 GB, free: 13.18 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004764/0.3792, allocations: 0.5592 MB / 0.4934 GB, free: 12.62 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02097/0.4002, allocations: 15.12 MB / 0.5081 GB, free: 13.48 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3174/0.7176, allocations: 52.78 MB / 0.5597 GB, free: 90.84 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/0.7303, allocations: 20.12 MB / 0.5793 GB, free: 72.75 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00375/0.734, allocations: 3.69 MB / 0.5829 GB, free: 70.84 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002654/0.7343, allocations: 183.3 kB / 0.5831 GB, free: 70.71 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.785e-05/0.7344, allocations: 81 kB / 0.5832 GB, free: 70.64 MB / 430.1 MB Notification: Performance of pre-optimization done (n=453): time 5.52e-06/0.7344, allocations: 0 / 0.5832 GB, free: 70.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=458): time 0.03791/0.7723, allocations: 20.72 MB / 0.6034 GB, free: 53.45 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.626e-05/0.7723, allocations: 103 kB / 0.6035 GB, free: 53.34 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004177/0.7765, allocations: 4.485 MB / 0.6079 GB, free: 48.83 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002091/0.7767, allocations: 97.7 kB / 0.608 GB, free: 48.73 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001461/0.7782, allocations: 4.191 MB / 0.6121 GB, free: 44.51 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006896/0.7789, allocations: 1.553 MB / 0.6136 GB, free: 42.97 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005116/0.7794, allocations: 499.6 kB / 0.6141 GB, free: 42.47 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 2.819e-05/0.7795, allocations: 301.1 kB / 0.6144 GB, free: 42.18 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003324/0.7828, allocations: 3.104 MB / 0.6174 GB, free: 39.07 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003958/0.7868, allocations: 5.254 MB / 0.6225 GB, free: 32.84 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007781/0.7945, allocations: 8.951 MB / 0.6313 GB, free: 22.92 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.102e-05/0.7946, allocations: 20 kB / 0.6313 GB, free: 22.9 MB / 430.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01164/0.8062, allocations: 9.932 MB / 0.641 GB, free: 12.95 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.588e-05/0.8063, allocations: 35.98 kB / 0.641 GB, free: 12.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.952e-05/0.8063, allocations: 72 kB / 0.6411 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002907/0.8092, allocations: 1.372 MB / 0.6424 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003812/0.8131, allocations: 1.384 MB / 0.6438 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01236/0.8254, allocations: 11.66 MB / 0.6552 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002976/0.8284, allocations: 359.4 kB / 0.6555 GB, free: 13.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004133/0.8288, allocations: 300 kB / 0.6558 GB, free: 13.52 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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%), (14,54,45.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004935/0.8338, allocations: 3.888 MB / 0.6596 GB, free: 9.617 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006286/0.8344, allocations: 458.4 kB / 0.66 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/0.8471, allocations: 8.588 MB / 0.6684 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009382/0.8565, allocations: 6.312 MB / 0.6746 GB, free: 10.19 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.806e-05/0.8565, allocations: 12 kB / 0.6746 GB, free: 10.18 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.372e-05/0.8566, allocations: 23.91 kB / 0.6746 GB, free: 10.16 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02454/0.8811, allocations: 17.75 MB / 0.6919 GB, free: 8.27 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.711e-05/0.8812, allocations: 8 kB / 0.692 GB, free: 8.262 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002959/0.8841, allocations: 0.8035 MB / 0.6927 GB, free: 7.457 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003041/0.8872, allocations: 1.275 MB / 0.694 GB, free: 6.176 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000277/0.8875, allocations: 108 kB / 0.6941 GB, free: 6.07 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1592/1.047, allocations: 10.58 MB / 0.7044 GB, free: 150.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.826e-06/1.047, allocations: 14.02 kB / 0.7044 GB, free: 150.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01601/1.063, allocations: 11.31 MB / 0.7155 GB, free: 147.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00186/1.065, allocations: 1.102 MB / 0.7166 GB, free: 146.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000775/1.065, allocations: 92.31 kB / 0.7166 GB, free: 146.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002317/1.068, allocations: 238.2 kB / 0.7169 GB, free: 146.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005717/1.068, allocations: 336 kB / 0.7172 GB, free: 146.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002639/1.069, allocations: 139.3 kB / 0.7173 GB, free: 146.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004108/1.073, allocations: 3.099 MB / 0.7203 GB, free: 145.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.073, allocations: 0 / 0.7203 GB, free: 145.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004591/1.077, allocations: 1.729 MB / 0.722 GB, free: 145.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.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 (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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%), (14,54,44.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001104/1.078, allocations: 0.5502 MB / 0.7226 GB, free: 145 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009864/1.088, allocations: 8.046 MB / 0.7304 GB, free: 141.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/1.088, allocations: 1.938 kB / 0.7304 GB, free: 141.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004882/1.093, allocations: 3.987 MB / 0.7343 GB, free: 140.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007402/1.101, allocations: 0.9997 MB / 0.7353 GB, free: 139.8 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02121/1.122, allocations: 22.19 MB / 0.757 GB, free: 122 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004096/1.126, allocations: 6.329 MB / 0.7632 GB, free: 116.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001219/1.127, allocations: 423.3 kB / 0.7636 GB, free: 116.1 MB / 478.1 MB Notification: Performance of SimCode: time 3.7e-07/1.127, allocations: 0 / 0.7636 GB, free: 116.1 MB / 478.1 MB Notification: Performance of Templates: time 0.2927/1.42, allocations: 226 MB / 0.9842 GB, free: 59.04 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches