Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008744/0.0008745, allocations: 183.7 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.224/1.224, allocations: 225.7 MB / 243.2 MB, free: 8.504 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007249/0.0007249, allocations: 94.16 kB / 294.4 MB, free: 9.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000374/0.0003743, allocations: 11.94 kB / 354.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.235, allocations: 50.41 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.01634/0.2514, allocations: 21.8 MB / 426.4 MB, free: 9.449 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01412/0.2656, allocations: 9.729 MB / 436.1 MB, free: 15.18 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003936/0.2695, allocations: 163.5 kB / 436.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004457/0.274, allocations: 1.758 MB / 438 MB, free: 13.26 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008554/0.2826, allocations: 3.675 MB / 441.7 MB, free: 9.332 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004452/0.2871, allocations: 2.179 MB / 443.9 MB, free: 7.004 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01177/0.2988, allocations: 11 MB / 454.9 MB, free: 11.95 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03936/0.3382, allocations: 29.84 MB / 484.7 MB, free: 12.36 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006379/0.3447, allocations: 4.29 MB / 489 MB, free: 8.059 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006745/0.3514, allocations: 5.023 MB / 494.1 MB, free: 3.016 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002149/0.3536, allocations: 0.664 MB / 494.7 MB, free: 2.352 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004097/0.3577, allocations: 1.046 MB / 495.8 MB, free: 1.305 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003048/0.3608, allocations: 2.094 MB / 497.9 MB, free: 15.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.006456/0.3673, allocations: 4.993 MB / 0.4911 GB, free: 10.18 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2223/0.5895, allocations: 21.72 MB / 0.5123 GB, free: 44.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.5896, allocations: 3.656 kB / 0.5123 GB, free: 44.9 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.5896, allocations: 0 / 0.5123 GB, free: 44.9 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0006201/0.5902, allocations: 0 / 0.5123 GB, free: 44.9 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.02932/0.6196, allocations: 11.24 MB / 0.5233 GB, free: 39.34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.6196, allocations: 11.5 kB / 0.5233 GB, free: 39.34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0312/0.6508, allocations: 6.235 MB / 0.5294 GB, free: 36.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01283/0.6637, allocations: 7.101 MB / 0.5363 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006019/0.6643, allocations: 0.7236 MB / 0.537 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003603/0.6679, allocations: 0.9476 MB / 0.5379 GB, free: 34.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03655/0.7045, allocations: 16.08 MB / 0.5536 GB, free: 25.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003084/0.7048, allocations: 9.594 kB / 0.5536 GB, free: 25.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003732/0.7086, allocations: 404.5 kB / 0.554 GB, free: 25.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005497/0.7091, allocations: 0.557 MB / 0.5546 GB, free: 25.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02985/0.739, allocations: 15.04 MB / 0.5692 GB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08318/0.8222, allocations: 52.77 MB / 0.6208 GB, free: 6.379 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01819/0.8404, allocations: 20.1 MB / 0.6404 GB, free: 332 kB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00561/0.8461, allocations: 3.676 MB / 0.644 GB, free: 12.64 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004617/0.8466, allocations: 182.6 kB / 0.6442 GB, free: 12.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.641e-05/0.8467, allocations: 86.09 kB / 0.6443 GB, free: 12.37 MB / 458.7 MB Notification: Performance of pre-optimization done (n=453): time 7.404e-06/0.8467, allocations: 0 / 0.6443 GB, free: 12.37 MB / 458.7 MB Notification: Performance of matching and sorting (n=458): time 0.05156/0.8982, allocations: 20.66 MB / 0.6644 GB, free: 7.699 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.429e-05/0.8984, allocations: 98.97 kB / 0.6645 GB, free: 7.59 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01027/0.9086, allocations: 4.461 MB / 0.6689 GB, free: 3.105 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001149/0.9098, allocations: 105.4 kB / 0.669 GB, free: 3 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2051/1.115, allocations: 4.175 MB / 0.6731 GB, free: 161.7 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00179/1.117, allocations: 1.56 MB / 0.6746 GB, free: 160.8 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004906/1.117, allocations: 125.2 kB / 0.6747 GB, free: 160.8 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0003874/1.118, allocations: 0.5574 MB / 0.6752 GB, free: 160.5 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004463/1.122, allocations: 3.08 MB / 0.6783 GB, free: 160.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005299/1.127, allocations: 5.232 MB / 0.6834 GB, free: 156.7 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009961/1.137, allocations: 8.908 MB / 0.6921 GB, free: 150.8 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.381e-05/1.138, allocations: 18.66 kB / 0.6921 GB, free: 150.8 MB / 474.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01598/1.154, allocations: 9.876 MB / 0.7017 GB, free: 146.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.942e-05/1.154, allocations: 35.78 kB / 0.7018 GB, free: 146.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001116/1.154, allocations: 67.69 kB / 0.7018 GB, free: 146.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003233/1.157, allocations: 1.365 MB / 0.7032 GB, free: 146.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004755/1.162, allocations: 1.392 MB / 0.7045 GB, free: 145.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01287/1.175, allocations: 11.66 MB / 0.7159 GB, free: 135.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004633/1.179, allocations: 359.9 kB / 0.7162 GB, free: 134.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006171/1.18, allocations: 291.5 kB / 0.7165 GB, free: 134.6 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.00551/1.185, allocations: 3.89 MB / 0.7203 GB, free: 131.3 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008067/1.186, allocations: 459.1 kB / 0.7208 GB, free: 130.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01152/1.198, allocations: 8.564 MB / 0.7291 GB, free: 123.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008085/1.206, allocations: 6.282 MB / 0.7353 GB, free: 117.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.742e-05/1.206, allocations: 12 kB / 0.7353 GB, free: 117.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.112e-05/1.206, allocations: 21.23 kB / 0.7353 GB, free: 117.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02536/1.231, allocations: 17.71 MB / 0.7526 GB, free: 99.65 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-05/1.231, allocations: 8 kB / 0.7526 GB, free: 99.64 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00302/1.235, allocations: 0.8036 MB / 0.7534 GB, free: 98.84 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002917/1.237, allocations: 1.284 MB / 0.7546 GB, free: 97.55 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004634/1.238, allocations: 108 kB / 0.7547 GB, free: 97.45 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01142/1.249, allocations: 10.56 MB / 0.765 GB, free: 86.64 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/1.249, allocations: 8 kB / 0.7651 GB, free: 86.63 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01455/1.264, allocations: 11.26 MB / 0.7761 GB, free: 75.22 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002481/1.266, allocations: 1.108 MB / 0.7771 GB, free: 74.09 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007405/1.267, allocations: 84 kB / 0.7772 GB, free: 74 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002147/1.269, allocations: 247.7 kB / 0.7775 GB, free: 73.76 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007082/1.27, allocations: 331.5 kB / 0.7778 GB, free: 73.44 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000261/1.27, allocations: 136 kB / 0.7779 GB, free: 73.3 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003932/1.274, allocations: 3.074 MB / 0.7809 GB, free: 70.22 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.274, allocations: 0 / 0.7809 GB, free: 70.22 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005683/1.28, allocations: 1.728 MB / 0.7826 GB, free: 68.5 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.00145/1.281, allocations: 0.6018 MB / 0.7832 GB, free: 68.04 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01168/1.293, allocations: 8 MB / 0.791 GB, free: 60.03 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.705e-06/1.293, allocations: 4 kB / 0.791 GB, free: 60.02 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005885/1.299, allocations: 3.976 MB / 0.7949 GB, free: 56.02 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01058/1.31, allocations: 1 MB / 0.7959 GB, free: 55.02 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03419/1.344, allocations: 22.44 MB / 0.8178 GB, free: 32.45 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009291/1.353, allocations: 6.509 MB / 0.8241 GB, free: 25.9 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005948/1.359, allocations: 2.107 MB / 0.8262 GB, free: 23.79 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001165/1.36, allocations: 383.3 kB / 0.8265 GB, free: 23.42 MB / 474.7 MB Notification: Performance of SimCode: time 2.194e-06/1.36, allocations: 0 / 0.8265 GB, free: 23.42 MB / 474.7 MB Notification: Performance of Templates: time 0.288/1.648, allocations: 71.62 MB / 0.8965 GB, free: 112.1 MB / 474.7 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/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_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