Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009684/0.0009684, allocations: 197.6 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 229.5 MB / 247.7 MB, free: 6.332 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007937/0.0007937, allocations: 99.36 kB / 299.9 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002379/0.000238, allocations: 8 kB / 360.7 MB, free: 8.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.195, allocations: 51.41 MB / 412.1 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01608/0.2111, allocations: 21.83 MB / 433.9 MB, free: 3.969 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01381/0.225, allocations: 10.48 MB / 444.4 MB, free: 8.816 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003546/0.2286, allocations: 163.5 kB / 444.5 MB, free: 8.656 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00465/0.2332, allocations: 1.77 MB / 446.3 MB, free: 6.879 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008545/0.2418, allocations: 3.646 MB / 450 MB, free: 3 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004861/0.2467, allocations: 2.201 MB / 452.2 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01267/0.2594, allocations: 11.1 MB / 463.3 MB, free: 5.496 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03673/0.2961, allocations: 29.85 MB / 493.1 MB, free: 5.898 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005895/0.3021, allocations: 4.294 MB / 497.4 MB, free: 1.59 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006401/0.3085, allocations: 5.023 MB / 0.4907 GB, free: 12.54 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001318/0.3098, allocations: 0.6602 MB / 0.4913 GB, free: 11.88 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002671/0.3125, allocations: 1.074 MB / 0.4924 GB, free: 10.81 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001683/0.3142, allocations: 2.094 MB / 0.4944 GB, free: 8.711 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005215/0.3194, allocations: 5.005 MB / 0.4993 GB, free: 3.676 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.213/0.5324, allocations: 21.74 MB / 0.5205 GB, free: 41.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.5325, allocations: 0 / 0.5205 GB, free: 41.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5325, allocations: 1.031 kB / 0.5205 GB, free: 41.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005283/0.533, allocations: 0 / 0.5205 GB, free: 41.7 MB / 378.7 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.02779/0.5608, allocations: 11.27 MB / 0.5315 GB, free: 36.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.055e-05/0.5609, allocations: 9.094 kB / 0.5315 GB, free: 36.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03121/0.5921, allocations: 6.256 MB / 0.5376 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01246/0.6046, allocations: 7.103 MB / 0.5446 GB, free: 31.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004481/0.6051, allocations: 0.7223 MB / 0.5453 GB, free: 31.7 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00265/0.6077, allocations: 0.9438 MB / 0.5462 GB, free: 31.64 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03271/0.6404, allocations: 16.08 MB / 0.5619 GB, free: 21.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002504/0.6407, allocations: 16.64 kB / 0.5619 GB, free: 21.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001633/0.6424, allocations: 401.2 kB / 0.5623 GB, free: 21.47 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003954/0.6428, allocations: 0.5611 MB / 0.5628 GB, free: 20.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02693/0.6697, allocations: 15.05 MB / 0.5775 GB, free: 6.609 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08832/0.7581, allocations: 53.25 MB / 0.6295 GB, free: 1.039 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01993/0.778, allocations: 20.1 MB / 0.6492 GB, free: 10.98 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005778/0.7839, allocations: 3.679 MB / 0.6528 GB, free: 7.301 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004396/0.7843, allocations: 274.6 kB / 0.653 GB, free: 7.012 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.104e-05/0.7844, allocations: 86.03 kB / 0.6531 GB, free: 6.918 MB / 458.7 MB Notification: Performance of pre-optimization done (n=453): time 5.941e-06/0.7844, allocations: 0 / 0.6531 GB, free: 6.918 MB / 458.7 MB Notification: Performance of matching and sorting (n=458): time 0.04955/0.834, allocations: 20.66 MB / 0.6733 GB, free: 2.258 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.287e-05/0.8341, allocations: 98.97 kB / 0.6734 GB, free: 2.148 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2168/1.051, allocations: 4.462 MB / 0.6777 GB, free: 156.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000872/1.052, allocations: 98.3 kB / 0.6778 GB, free: 156.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002557/1.054, allocations: 4.19 MB / 0.6819 GB, free: 155 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001575/1.056, allocations: 1.553 MB / 0.6834 GB, free: 153.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004955/1.057, allocations: 125.2 kB / 0.6836 GB, free: 153.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004227/1.057, allocations: 0.5586 MB / 0.6841 GB, free: 153.3 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00545/1.062, allocations: 3.076 MB / 0.6871 GB, free: 152.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007995/1.07, allocations: 5.238 MB / 0.6922 GB, free: 148.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01725/1.088, allocations: 8.91 MB / 0.7009 GB, free: 142.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001175/1.088, allocations: 18.59 kB / 0.7009 GB, free: 142.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.02206/1.11, allocations: 9.878 MB / 0.7106 GB, free: 138 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.247e-05/1.11, allocations: 36 kB / 0.7106 GB, free: 138 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001432/1.11, allocations: 68 kB / 0.7107 GB, free: 137.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00474/1.115, allocations: 1.362 MB / 0.712 GB, free: 136.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007505/1.122, allocations: 1.388 MB / 0.7134 GB, free: 135.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02196/1.144, allocations: 11.66 MB / 0.7248 GB, free: 125.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007132/1.152, allocations: 359.2 kB / 0.7251 GB, free: 124.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001615/1.153, allocations: 291.4 kB / 0.7254 GB, free: 124.7 MB / 474.7 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.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009812/1.163, allocations: 3.898 MB / 0.7292 GB, free: 121.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001285/1.164, allocations: 466.1 kB / 0.7296 GB, free: 120.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01884/1.183, allocations: 8.555 MB / 0.738 GB, free: 113.1 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01425/1.198, allocations: 6.284 MB / 0.7441 GB, free: 106.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.006e-05/1.198, allocations: 12 kB / 0.7441 GB, free: 106.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.03e-05/1.198, allocations: 19.92 kB / 0.7442 GB, free: 106.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04002/1.238, allocations: 17.72 MB / 0.7615 GB, free: 88.97 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.141e-05/1.238, allocations: 8 kB / 0.7615 GB, free: 88.96 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004985/1.243, allocations: 0.8079 MB / 0.7623 GB, free: 88.15 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004691/1.248, allocations: 1.274 MB / 0.7635 GB, free: 86.88 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006414/1.248, allocations: 99.97 kB / 0.7636 GB, free: 86.78 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01858/1.267, allocations: 10.58 MB / 0.7739 GB, free: 75.95 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.008e-05/1.267, allocations: 16 kB / 0.7739 GB, free: 75.93 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02565/1.293, allocations: 11.26 MB / 0.7849 GB, free: 64.52 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003807/1.296, allocations: 1.1 MB / 0.786 GB, free: 63.39 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001735/1.298, allocations: 95.98 kB / 0.7861 GB, free: 63.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00472/1.303, allocations: 239.8 kB / 0.7863 GB, free: 63.07 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001451/1.304, allocations: 323.5 kB / 0.7866 GB, free: 62.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007639/1.305, allocations: 140 kB / 0.7868 GB, free: 62.61 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007922/1.313, allocations: 3.08 MB / 0.7898 GB, free: 59.52 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.212e-06/1.313, allocations: 0 / 0.7898 GB, free: 59.52 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009986/1.323, allocations: 1.736 MB / 0.7915 GB, free: 57.79 MB / 474.7 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.002275/1.325, allocations: 0.5897 MB / 0.792 GB, free: 57.34 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01934/1.345, allocations: 7.998 MB / 0.7999 GB, free: 49.32 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.345, allocations: 4 kB / 0.7999 GB, free: 49.32 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00995/1.355, allocations: 3.966 MB / 0.8037 GB, free: 45.33 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01388/1.369, allocations: 1.016 MB / 0.8047 GB, free: 44.31 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04133/1.41, allocations: 22.47 MB / 0.8267 GB, free: 21.72 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00845/1.419, allocations: 6.517 MB / 0.833 GB, free: 15.17 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005707/1.424, allocations: 2.115 MB / 0.8351 GB, free: 13.05 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001027/1.425, allocations: 379.4 kB / 0.8355 GB, free: 12.68 MB / 474.7 MB Notification: Performance of SimCode: time 1.012e-06/1.425, allocations: 3.938 kB / 0.8355 GB, free: 12.67 MB / 474.7 MB Notification: Performance of Templates: time 0.3494/1.775, allocations: 71.7 MB / 0.9055 GB, free: 103.2 MB / 474.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches