Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001259/0.001259, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001345/0.001345, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.395/1.395, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001288, allocations: 55.92 kB / 280.7 MB, free: 3.148 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08815/0.08945, allocations: 46.63 MB / 327.3 MB, free: 4.449 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02394/0.1134, allocations: 24.96 MB / 352.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01632/0.1298, allocations: 7.713 MB / 360 MB, free: 3.629 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004913/0.1348, allocations: 151.5 kB / 360.1 MB, free: 3.48 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01808/0.153, allocations: 8.358 MB / 368.5 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009325/0.1623, allocations: 3.05 MB / 371.5 MB, free: 8.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005117/0.1674, allocations: 1.8 MB / 373.3 MB, free: 6.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1912/0.3586, allocations: 11.11 MB / 384.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03609/0.3948, allocations: 23.54 MB / 408 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01013/0.405, allocations: 5.956 MB / 414 MB, free: 2.012 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01933/0.4243, allocations: 7.509 MB / 421.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005964/0.4303, allocations: 1.73 MB / 423.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008567/0.4389, allocations: 2.124 MB / 425.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006868/0.4458, allocations: 3.407 MB / 428.7 MB, free: 8.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01537/0.4612, allocations: 6.442 MB / 435.2 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02882/0.4901, allocations: 23.01 MB / 458.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.025e-06/0.4901, allocations: 3.375 kB / 458.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4901, allocations: 4 kB / 458.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006529/0.4908, allocations: 0 / 458.2 MB, free: 11.96 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: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.04444/0.5352, allocations: 13.62 MB / 471.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.531e-05/0.5353, allocations: 8.031 kB / 471.8 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04025/0.5756, allocations: 7.204 MB / 479 MB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01404/0.5897, allocations: 6.489 MB / 485.5 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008382/0.5905, allocations: 0.7404 MB / 486.2 MB, free: 244 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004026/0.5946, allocations: 0.9642 MB / 487.2 MB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04357/0.6382, allocations: 16.59 MB / 0.492 GB, free: 14.64 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004757/0.6387, allocations: 7.906 kB / 0.492 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003626/0.6423, allocations: 415.2 kB / 0.4924 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006683/0.643, allocations: 0.587 MB / 0.493 GB, free: 13.65 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03221/0.6753, allocations: 15.78 MB / 0.5084 GB, free: 13.86 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4159/1.091, allocations: 53.89 MB / 0.561 GB, free: 119 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01914/1.11, allocations: 22.72 MB / 0.5832 GB, free: 102.2 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006303/1.117, allocations: 3.794 MB / 0.5869 GB, free: 100.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01716/1.134, allocations: 11.71 MB / 0.5983 GB, free: 94.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.943e-05/1.134, allocations: 71.3 kB / 0.5984 GB, free: 94.34 MB / 446.1 MB Notification: Performance of pre-optimization done (n=357): time 5.31e-06/1.134, allocations: 2.625 kB / 0.5984 GB, free: 94.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=362): time 0.03769/1.172, allocations: 17.51 MB / 0.6155 GB, free: 84.11 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/1.172, allocations: 88.66 kB / 0.6156 GB, free: 84.04 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007103/1.179, allocations: 4.764 MB / 0.6202 GB, free: 80.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008726/1.18, allocations: 85.7 kB / 0.6203 GB, free: 80.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002022/1.182, allocations: 4.475 MB / 0.6247 GB, free: 76.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001222/1.183, allocations: 1.257 MB / 0.6259 GB, free: 75.14 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001736/1.185, allocations: 1.191 MB / 0.6271 GB, free: 73.94 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.861e-05/1.185, allocations: 305.1 kB / 0.6274 GB, free: 73.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003664/1.189, allocations: 2.901 MB / 0.6302 GB, free: 70.73 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004274/1.193, allocations: 5.264 MB / 0.6354 GB, free: 64.41 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008291/1.201, allocations: 8.641 MB / 0.6438 GB, free: 54.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.181e-05/1.201, allocations: 23.94 kB / 0.6438 GB, free: 54.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01562/1.217, allocations: 9.619 MB / 0.6532 GB, free: 45.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.806e-05/1.217, allocations: 39.28 kB / 0.6532 GB, free: 44.99 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001224/1.217, allocations: 84.12 kB / 0.6533 GB, free: 44.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003404/1.221, allocations: 1.446 MB / 0.6547 GB, free: 43.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005179/1.226, allocations: 1.334 MB / 0.656 GB, free: 42.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0166/1.242, allocations: 12.68 MB / 0.6684 GB, free: 29.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00556/1.248, allocations: 367.5 kB / 0.6688 GB, free: 28.81 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001382/1.249, allocations: 304 kB / 0.6691 GB, free: 28.51 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 355 * 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 (689): * Single equations (assignments): 686 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.009214/1.259, allocations: 3.92 MB / 0.6729 GB, free: 24.58 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001735/1.26, allocations: 454.4 kB / 0.6733 GB, free: 24.13 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0139/1.274, allocations: 6.776 MB / 0.6799 GB, free: 17.31 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008958/1.283, allocations: 5.584 MB / 0.6854 GB, free: 11.69 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.738e-05/1.283, allocations: 12 kB / 0.6854 GB, free: 11.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.827e-05/1.284, allocations: 19.92 kB / 0.6854 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03464/1.318, allocations: 15.45 MB / 0.7005 GB, free: 12.12 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.912e-05/1.318, allocations: 6.531 kB / 0.7005 GB, free: 12.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003426/1.322, allocations: 0.6592 MB / 0.7012 GB, free: 11.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004403/1.326, allocations: 1.314 MB / 0.7025 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001208/1.327, allocations: 87.97 kB / 0.7025 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2453/1.573, allocations: 11.56 MB / 0.7138 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/1.573, allocations: 11.62 kB / 0.7138 GB, free: 146 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01931/1.592, allocations: 9.998 MB / 0.7236 GB, free: 144.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003557/1.596, allocations: 1.018 MB / 0.7246 GB, free: 143.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001465/1.597, allocations: 68.75 kB / 0.7247 GB, free: 143.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003576/1.601, allocations: 221.2 kB / 0.7249 GB, free: 143.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001029/1.602, allocations: 273.9 kB / 0.7251 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003391/1.602, allocations: 112.2 kB / 0.7252 GB, free: 143.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005555/1.608, allocations: 3.236 MB / 0.7284 GB, free: 142.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.91e-07/1.608, allocations: 0 / 0.7284 GB, free: 142.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007282/1.615, allocations: 1.7 MB / 0.7301 GB, free: 142.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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 (333): * Single equations (assignments): 330 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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,43.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001671/1.617, allocations: 0.5115 MB / 0.7306 GB, free: 141.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02506/1.642, allocations: 12.1 MB / 0.7424 GB, free: 138.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/1.642, allocations: 0 / 0.7424 GB, free: 138.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006722/1.649, allocations: 3.605 MB / 0.7459 GB, free: 137.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005364/1.654, allocations: 1.029 MB / 0.7469 GB, free: 136.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03/1.684, allocations: 17.98 MB / 0.7645 GB, free: 122.9 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006858/1.691, allocations: 6.555 MB / 0.7709 GB, free: 117.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005518/1.696, allocations: 2.099 MB / 0.7729 GB, free: 116.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/1.698, allocations: 354.6 kB / 0.7732 GB, free: 116 MB / 462.1 MB Notification: Performance of SimCode: time 1.253e-06/1.698, allocations: 0 / 0.7732 GB, free: 116 MB / 462.1 MB Notification: Performance of Templates: time 0.1072/1.805, allocations: 71.37 MB / 0.8429 GB, free: 45.25 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches