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.001379/0.001379, allocations: 114.3 kB / 17.28 MB, free: 6.219 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.001206/0.001206, allocations: 185.3 kB / 18.2 MB, free: 5.301 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.568/1.568, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001654/0.001654, allocations: 52.39 kB / 280.2 MB, free: 3.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1209, allocations: 46.63 MB / 326.8 MB, free: 4.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02498/0.146, allocations: 24.53 MB / 351.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01802/0.164, allocations: 7.616 MB / 359 MB, free: 4.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007319/0.1714, allocations: 147.5 kB / 359.1 MB, free: 4.336 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01832/0.1898, allocations: 7.916 MB / 367 MB, free: 12.39 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01072/0.2005, allocations: 2.773 MB / 369.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005804/0.2063, allocations: 1.652 MB / 371.4 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2528/0.4591, allocations: 11.18 MB / 382.6 MB, free: 11.67 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0381/0.4973, allocations: 26.94 MB / 409.6 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01005/0.5074, allocations: 6.021 MB / 415.6 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01403/0.5215, allocations: 6.763 MB / 422.3 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006356/0.5279, allocations: 1.727 MB / 424.1 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008673/0.5365, allocations: 2.125 MB / 426.2 MB, free: 8.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006842/0.5434, allocations: 3.43 MB / 429.6 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0166/0.56, allocations: 6.431 MB / 436.1 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03253/0.5926, allocations: 23.03 MB / 459.1 MB, free: 8.988 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.157e-05/0.5927, allocations: 0 / 459.1 MB, free: 8.988 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.5927, allocations: 0 / 459.1 MB, free: 8.988 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008372/0.5935, allocations: 0 / 459.1 MB, free: 8.988 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.04819/0.6418, allocations: 13.63 MB / 472.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.987e-05/0.6418, allocations: 12.03 kB / 472.7 MB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04053/0.6824, allocations: 7.201 MB / 479.9 MB, free: 4.223 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01648/0.6989, allocations: 6.485 MB / 486.4 MB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009543/0.6999, allocations: 0.7271 MB / 487.1 MB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005055/0.705, allocations: 0.9686 MB / 488.1 MB, free: 12.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05001/0.755, allocations: 16.61 MB / 0.4929 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005694/0.7556, allocations: 15.89 kB / 0.4929 GB, free: 11.62 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004409/0.76, allocations: 404.8 kB / 0.4933 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007633/0.7608, allocations: 0.5946 MB / 0.4939 GB, free: 10.65 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03912/0.7999, allocations: 15.79 MB / 0.5093 GB, free: 10.84 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4694/1.269, allocations: 53.88 MB / 0.5619 GB, free: 120.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01803/1.287, allocations: 22.73 MB / 0.5841 GB, free: 102 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005543/1.293, allocations: 3.83 MB / 0.5878 GB, free: 100.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0165/1.31, allocations: 11.79 MB / 0.5994 GB, free: 93.25 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/1.31, allocations: 68.73 kB / 0.5994 GB, free: 93.19 MB / 446.1 MB Notification: Performance of pre-optimization done (n=363): time 5.33e-06/1.31, allocations: 0 / 0.5994 GB, free: 93.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=368): time 0.03437/1.344, allocations: 17.48 MB / 0.6165 GB, free: 82.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.456e-05/1.344, allocations: 92.7 kB / 0.6166 GB, free: 82.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005667/1.35, allocations: 4.757 MB / 0.6212 GB, free: 78.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006836/1.35, allocations: 89.7 kB / 0.6213 GB, free: 78.22 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001864/1.352, allocations: 4.47 MB / 0.6257 GB, free: 73.73 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001066/1.353, allocations: 1.271 MB / 0.6269 GB, free: 72.46 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001486/1.355, allocations: 1.195 MB / 0.6281 GB, free: 71.26 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.156e-05/1.355, allocations: 309.1 kB / 0.6284 GB, free: 70.95 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00337/1.358, allocations: 2.927 MB / 0.6312 GB, free: 68.02 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005043/1.363, allocations: 5.301 MB / 0.6364 GB, free: 61.65 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009951/1.373, allocations: 8.702 MB / 0.6449 GB, free: 51.87 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.675e-05/1.373, allocations: 23.94 kB / 0.6449 GB, free: 51.85 MB / 446.1 MB Notification: Performance of matching and sorting (n=769) (initialization): time 0.01413/1.388, allocations: 9.67 MB / 0.6544 GB, free: 42.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.75e-05/1.388, allocations: 36 kB / 0.6544 GB, free: 42.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/1.388, allocations: 80 kB / 0.6545 GB, free: 42.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003342/1.391, allocations: 1.411 MB / 0.6559 GB, free: 40.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004478/1.396, allocations: 1.334 MB / 0.6572 GB, free: 39.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01349/1.409, allocations: 12.57 MB / 0.6695 GB, free: 26.44 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005199/1.414, allocations: 367.5 kB / 0.6698 GB, free: 26.08 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001146/1.416, allocations: 304 kB / 0.6701 GB, free: 25.79 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 (692): * Single equations (assignments): 686 * 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.006335/1.422, allocations: 3.919 MB / 0.6739 GB, free: 21.85 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001065/1.423, allocations: 454.4 kB / 0.6744 GB, free: 21.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009889/1.433, allocations: 6.809 MB / 0.681 GB, free: 14.55 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007342/1.44, allocations: 5.643 MB / 0.6865 GB, free: 8.871 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.837e-05/1.44, allocations: 12 kB / 0.6865 GB, free: 8.859 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.869e-05/1.44, allocations: 19.92 kB / 0.6865 GB, free: 8.84 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02416/1.464, allocations: 15.51 MB / 0.7017 GB, free: 9.242 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.658e-05/1.465, allocations: 8 kB / 0.7017 GB, free: 9.234 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002798/1.467, allocations: 0.6631 MB / 0.7024 GB, free: 8.57 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00331/1.471, allocations: 1.278 MB / 0.7036 GB, free: 7.289 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003509/1.471, allocations: 95.97 kB / 0.7037 GB, free: 7.195 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2461/1.717, allocations: 11.42 MB / 0.7148 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/1.717, allocations: 8.094 kB / 0.7148 GB, free: 144.2 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01735/1.735, allocations: 10.1 MB / 0.7247 GB, free: 142 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002718/1.737, allocations: 1.025 MB / 0.7257 GB, free: 141.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001079/1.738, allocations: 71.38 kB / 0.7258 GB, free: 141.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002502/1.741, allocations: 226.9 kB / 0.726 GB, free: 141.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007259/1.742, allocations: 273.3 kB / 0.7263 GB, free: 141.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002638/1.742, allocations: 109.9 kB / 0.7264 GB, free: 141.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005709/1.748, allocations: 3.231 MB / 0.7295 GB, free: 140.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.623e-06/1.748, allocations: 7.938 kB / 0.7295 GB, free: 140.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007411/1.755, allocations: 1.698 MB / 0.7312 GB, free: 140.1 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 (336): * Single equations (assignments): 330 * 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.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001639/1.757, allocations: 0.5099 MB / 0.7317 GB, free: 139.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02517/1.782, allocations: 12.33 MB / 0.7437 GB, free: 136.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.417e-06/1.782, allocations: 3.906 kB / 0.7437 GB, free: 136.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005922/1.788, allocations: 3.601 MB / 0.7472 GB, free: 135.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005107/1.793, allocations: 1.028 MB / 0.7483 GB, free: 134.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03081/1.824, allocations: 22.19 MB / 0.7699 GB, free: 115.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007699/1.832, allocations: 6.557 MB / 0.7763 GB, free: 110.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006149/1.838, allocations: 2.101 MB / 0.7784 GB, free: 109.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001248/1.839, allocations: 356.3 kB / 0.7787 GB, free: 108.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.202e-06/1.839, allocations: 3.719 kB / 0.7787 GB, free: 108.8 MB / 462.1 MB Notification: Performance of Templates: time 0.1064/1.945, allocations: 71.67 MB / 0.8487 GB, free: 37.35 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","../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