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.001503/0.001503, allocations: 104.4 kB / 18.34 MB, free: 4.691 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.001615/0.001615, allocations: 190.9 kB / 19.28 MB, free: 3.762 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.377/1.377, allocations: 205.1 MB / 225.2 MB, free: 12.25 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.001267/0.001267, allocations: 47.94 kB / 282.1 MB, free: 2.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09194/0.09322, allocations: 46.63 MB / 328.7 MB, free: 3.73 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02543/0.1187, allocations: 24.97 MB / 353.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01546/0.1342, allocations: 7.713 MB / 361.4 MB, free: 2.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004488/0.1387, allocations: 159.5 kB / 361.6 MB, free: 2.742 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01826/0.1571, allocations: 8.354 MB / 369.9 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00997/0.167, allocations: 3.05 MB / 373 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005472/0.1725, allocations: 1.794 MB / 374.8 MB, free: 5.488 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1883/0.3608, allocations: 11.21 MB / 386 MB, free: 12.55 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0307/0.3915, allocations: 23.35 MB / 409.3 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008011/0.3996, allocations: 5.978 MB / 415.3 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02143/0.4211, allocations: 7.675 MB / 423 MB, free: 0 / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005178/0.4263, allocations: 1.739 MB / 424.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006885/0.4332, allocations: 2.131 MB / 426.9 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005714/0.4389, allocations: 3.444 MB / 430.3 MB, free: 8.84 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01111/0.4501, allocations: 6.439 MB / 436.7 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02361/0.4737, allocations: 23.14 MB / 459.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.4737, allocations: 0 / 459.9 MB, free: 11.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.4737, allocations: 4 kB / 459.9 MB, free: 11.76 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005005/0.4742, allocations: 0 / 459.9 MB, free: 11.76 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.03571/0.51, allocations: 13.55 MB / 473.4 MB, free: 14.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.51, allocations: 12.03 kB / 473.5 MB, free: 14.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03929/0.5493, allocations: 7.249 MB / 480.7 MB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.015/0.5644, allocations: 6.498 MB / 487.2 MB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007523/0.5651, allocations: 0.7263 MB / 487.9 MB, free: 48 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003725/0.5689, allocations: 0.9674 MB / 488.9 MB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03307/0.602, allocations: 16.6 MB / 0.4936 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001901/0.6022, allocations: 7.906 kB / 0.4936 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001158/0.6033, allocations: 405.6 kB / 0.494 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005385/0.6039, allocations: 0.5986 MB / 0.4946 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02918/0.6331, allocations: 15.79 MB / 0.51 GB, free: 13.66 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4178/1.051, allocations: 53.25 MB / 0.562 GB, free: 118.9 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01756/1.069, allocations: 22.73 MB / 0.5842 GB, free: 102.4 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005723/1.074, allocations: 3.8 MB / 0.5879 GB, free: 100.9 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01689/1.091, allocations: 11.68 MB / 0.5994 GB, free: 95.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/1.091, allocations: 68.69 kB / 0.5994 GB, free: 95 MB / 446.1 MB Notification: Performance of pre-optimization done (n=357): time 4.899e-06/1.091, allocations: 0 / 0.5994 GB, free: 95 MB / 446.1 MB Notification: Performance of matching and sorting (n=362): time 0.03419/1.126, allocations: 17.51 MB / 0.6165 GB, free: 84.81 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/1.126, allocations: 91.12 kB / 0.6166 GB, free: 84.75 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005859/1.132, allocations: 4.761 MB / 0.6213 GB, free: 81.44 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004702/1.132, allocations: 85.7 kB / 0.6213 GB, free: 81.35 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00192/1.134, allocations: 4.479 MB / 0.6257 GB, free: 76.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009597/1.135, allocations: 1.25 MB / 0.6269 GB, free: 75.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001484/1.136, allocations: 1.194 MB / 0.6281 GB, free: 74.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.722e-05/1.136, allocations: 301.1 kB / 0.6284 GB, free: 74.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003436/1.14, allocations: 2.897 MB / 0.6312 GB, free: 71.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00422/1.144, allocations: 5.267 MB / 0.6364 GB, free: 64.86 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008506/1.153, allocations: 8.637 MB / 0.6448 GB, free: 55.11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.925e-05/1.153, allocations: 27.94 kB / 0.6448 GB, free: 55.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01403/1.167, allocations: 9.611 MB / 0.6542 GB, free: 45.44 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.286e-05/1.167, allocations: 40.19 kB / 0.6542 GB, free: 45.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/1.167, allocations: 83.94 kB / 0.6543 GB, free: 45.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003287/1.17, allocations: 1.438 MB / 0.6557 GB, free: 43.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004423/1.175, allocations: 1.33 MB / 0.657 GB, free: 42.54 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01419/1.189, allocations: 12.67 MB / 0.6694 GB, free: 29.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004688/1.194, allocations: 367.5 kB / 0.6698 GB, free: 29.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000667/1.194, allocations: 300 kB / 0.67 GB, free: 28.95 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.005287/1.2, allocations: 3.92 MB / 0.6739 GB, free: 25.01 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000867/1.2, allocations: 446.5 kB / 0.6743 GB, free: 24.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009948/1.21, allocations: 6.772 MB / 0.6809 GB, free: 17.75 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00762/1.218, allocations: 5.591 MB / 0.6864 GB, free: 12.12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/1.218, allocations: 16 kB / 0.6864 GB, free: 12.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.187e-05/1.218, allocations: 19.92 kB / 0.6864 GB, free: 12.09 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02483/1.243, allocations: 15.43 MB / 0.7015 GB, free: 12.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.759e-05/1.243, allocations: 8.125 kB / 0.7015 GB, free: 12.57 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002883/1.246, allocations: 0.6709 MB / 0.7021 GB, free: 11.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003483/1.249, allocations: 1.313 MB / 0.7034 GB, free: 10.59 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002854/1.25, allocations: 87.97 kB / 0.7035 GB, free: 10.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1911/1.441, allocations: 11.54 MB / 0.7148 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.054e-06/1.441, allocations: 5.531 kB / 0.7148 GB, free: 145.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01566/1.456, allocations: 10 MB / 0.7245 GB, free: 144 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002659/1.459, allocations: 1.021 MB / 0.7255 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005887/1.46, allocations: 68.34 kB / 0.7256 GB, free: 143.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002069/1.462, allocations: 222.2 kB / 0.7258 GB, free: 143.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007014/1.463, allocations: 274.5 kB / 0.7261 GB, free: 143.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002694/1.463, allocations: 110.8 kB / 0.7262 GB, free: 143.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004496/1.467, allocations: 3.237 MB / 0.7293 GB, free: 142.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.467, allocations: 0 / 0.7293 GB, free: 142.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005394/1.473, allocations: 1.697 MB / 0.731 GB, free: 142.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 (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.001183/1.474, allocations: 0.5069 MB / 0.7315 GB, free: 141.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01112/1.485, allocations: 7.532 MB / 0.7388 GB, free: 138.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/1.485, allocations: 3.938 kB / 0.7389 GB, free: 138.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005627/1.491, allocations: 3.603 MB / 0.7424 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.0046/1.495, allocations: 1.027 MB / 0.7434 GB, free: 136.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02653/1.522, allocations: 17.77 MB / 0.7607 GB, free: 127.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005526/1.528, allocations: 6.55 MB / 0.7671 GB, free: 122.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005021/1.533, allocations: 2.101 MB / 0.7692 GB, free: 120.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/1.534, allocations: 350.5 kB / 0.7695 GB, free: 120.6 MB / 462.1 MB Notification: Performance of SimCode: time 7.62e-07/1.534, allocations: 0 / 0.7695 GB, free: 120.6 MB / 462.1 MB Notification: Performance of Templates: time 0.09857/1.632, allocations: 65.84 MB / 0.8338 GB, free: 55.79 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 -s cvode -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/jenkins1/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/jenkins1/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