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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001775/0.001775, allocations: 113.2 kB / 17.73 MB, free: 5.312 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.001875/0.001875, allocations: 188.2 kB / 18.66 MB, free: 4.387 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.575/1.575, allocations: 205.1 MB / 224.5 MB, free: 12.21 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.001643/0.001643, allocations: 48.2 kB / 328.1 MB, free: 3.754 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1093, allocations: 46.62 MB / 374.7 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.2492/0.3586, allocations: 24.97 MB / 399.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02142/0.38, allocations: 7.71 MB / 407.4 MB, free: 8.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01111/0.3912, allocations: 152.9 kB / 407.5 MB, free: 8.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0214/0.4127, allocations: 8.373 MB / 415.9 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01305/0.4258, allocations: 3.046 MB / 418.9 MB, free: 140 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00664/0.4324, allocations: 1.789 MB / 420.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01783/0.4503, allocations: 11.21 MB / 431.9 MB, free: 6.652 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03993/0.4903, allocations: 23.36 MB / 455.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01196/0.5023, allocations: 5.966 MB / 461.3 MB, free: 9.148 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01404/0.5164, allocations: 6.537 MB / 467.8 MB, free: 2.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005541/0.522, allocations: 1.727 MB / 469.5 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008502/0.5305, allocations: 2.125 MB / 471.7 MB, free: 14.74 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006195/0.5367, allocations: 3.457 MB / 475.1 MB, free: 11.27 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01412/0.5509, allocations: 6.432 MB / 481.5 MB, free: 4.816 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03605/0.587, allocations: 23.19 MB / 0.4929 GB, free: 13.55 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.795e-05/0.5871, allocations: 0 / 0.4929 GB, free: 13.55 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.5871, allocations: 3.938 kB / 0.4929 GB, free: 13.55 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007411/0.5878, allocations: 0 / 0.4929 GB, free: 13.55 MB / 430.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.05807/0.6459, allocations: 13.8 MB / 0.5064 GB, free: 15.63 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.646, allocations: 8.031 kB / 0.5064 GB, free: 15.62 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006603/0.6526, allocations: 1.649 MB / 0.508 GB, free: 13.96 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04337/0.696, allocations: 7.313 MB / 0.5151 GB, free: 6.629 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01733/0.7134, allocations: 6.514 MB / 0.5215 GB, free: 36 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001078/0.7145, allocations: 0.7307 MB / 0.5222 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004944/0.7195, allocations: 0.9725 MB / 0.5232 GB, free: 14.33 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04864/0.7682, allocations: 16.63 MB / 0.5394 GB, free: 13.62 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003592/0.7686, allocations: 15.94 kB / 0.5394 GB, free: 13.6 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003558/0.7721, allocations: 404 kB / 0.5398 GB, free: 13.21 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000726/0.7729, allocations: 0.5987 MB / 0.5404 GB, free: 12.61 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4694/1.242, allocations: 15.81 MB / 0.5558 GB, free: 132.6 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09347/1.336, allocations: 53.46 MB / 0.608 GB, free: 99.18 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01815/1.354, allocations: 22.72 MB / 0.6302 GB, free: 78.59 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005304/1.359, allocations: 3.814 MB / 0.634 GB, free: 75.92 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0155/1.375, allocations: 11.69 MB / 0.6454 GB, free: 64.27 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/1.375, allocations: 69.36 kB / 0.6454 GB, free: 64.19 MB / 478.1 MB Notification: Performance of pre-optimization done (n=357): time 6.883e-06/1.375, allocations: 0 / 0.6454 GB, free: 64.19 MB / 478.1 MB Notification: Performance of matching and sorting (n=362): time 0.03666/1.412, allocations: 17.64 MB / 0.6627 GB, free: 46.83 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.607e-05/1.412, allocations: 94.23 kB / 0.6628 GB, free: 46.73 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006162/1.418, allocations: 4.772 MB / 0.6674 GB, free: 41.98 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007252/1.419, allocations: 81.7 kB / 0.6675 GB, free: 41.9 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00201/1.421, allocations: 4.651 MB / 0.672 GB, free: 37.32 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001252/1.422, allocations: 1.313 MB / 0.6733 GB, free: 36.02 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001603/1.424, allocations: 1.195 MB / 0.6745 GB, free: 34.81 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.091e-05/1.424, allocations: 305.1 kB / 0.6748 GB, free: 34.51 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00373/1.427, allocations: 2.901 MB / 0.6776 GB, free: 31.61 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004611/1.432, allocations: 5.268 MB / 0.6827 GB, free: 25.23 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009403/1.441, allocations: 8.636 MB / 0.6912 GB, free: 15.48 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.579e-05/1.442, allocations: 24 kB / 0.6912 GB, free: 15.46 MB / 478.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01747/1.459, allocations: 9.633 MB / 0.7006 GB, free: 5.801 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001231/1.459, allocations: 43.94 kB / 0.7007 GB, free: 5.758 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001535/1.459, allocations: 84.12 kB / 0.7007 GB, free: 5.676 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00395/1.463, allocations: 1.438 MB / 0.7021 GB, free: 4.234 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004979/1.468, allocations: 1.326 MB / 0.7034 GB, free: 2.906 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02043/1.489, allocations: 12.69 MB / 0.7158 GB, free: 5.938 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005283/1.494, allocations: 367.6 kB / 0.7162 GB, free: 5.578 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001137/1.495, allocations: 300 kB / 0.7165 GB, free: 5.285 MB / 494.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.007793/1.503, allocations: 3.924 MB / 0.7203 GB, free: 1.344 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001301/1.504, allocations: 476.9 kB / 0.7208 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01426/1.519, allocations: 6.764 MB / 0.7274 GB, free: 10.07 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01161/1.53, allocations: 5.591 MB / 0.7328 GB, free: 4.441 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.767e-05/1.53, allocations: 12 kB / 0.7328 GB, free: 4.43 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.196e-05/1.53, allocations: 19.92 kB / 0.7328 GB, free: 4.41 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03377/1.564, allocations: 15.45 MB / 0.7479 GB, free: 4.828 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-05/1.564, allocations: 8.094 kB / 0.7479 GB, free: 4.82 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003317/1.568, allocations: 0.663 MB / 0.7486 GB, free: 4.156 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003965/1.572, allocations: 1.298 MB / 0.7499 GB, free: 2.855 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006991/1.572, allocations: 91.97 kB / 0.75 GB, free: 2.766 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2418/1.814, allocations: 11.55 MB / 0.7612 GB, free: 167.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.885e-06/1.814, allocations: 8.406 kB / 0.7612 GB, free: 167.3 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01806/1.832, allocations: 10.02 MB / 0.771 GB, free: 163.1 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002767/1.835, allocations: 1.043 MB / 0.772 GB, free: 162.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008486/1.836, allocations: 77.12 kB / 0.7721 GB, free: 162.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002396/1.838, allocations: 216.4 kB / 0.7723 GB, free: 162.6 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000842/1.839, allocations: 274.8 kB / 0.7726 GB, free: 162.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002812/1.839, allocations: 117.8 kB / 0.7727 GB, free: 162.5 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005166/1.845, allocations: 3.232 MB / 0.7759 GB, free: 161.4 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.41e-07/1.845, allocations: 0 / 0.7759 GB, free: 161.4 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006924/1.852, allocations: 1.7 MB / 0.7775 GB, free: 161.2 MB / 0.5138 GB 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.01642/1.868, allocations: 11.01 MB / 0.7883 GB, free: 156.2 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01155/1.88, allocations: 7.54 MB / 0.7956 GB, free: 153.2 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/1.88, allocations: 1.281 kB / 0.7956 GB, free: 153.2 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.006492/1.886, allocations: 3.606 MB / 0.7992 GB, free: 150.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005585/1.892, allocations: 1.037 MB / 0.8002 GB, free: 150.1 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08742/1.979, allocations: 60.29 MB / 0.859 GB, free: 90.8 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006331/1.986, allocations: 6.563 MB / 0.8655 GB, free: 84.2 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004993/1.991, allocations: 2.102 MB / 0.8675 GB, free: 82.09 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00412/1.995, allocations: 3.553 MB / 0.871 GB, free: 78.54 MB / 0.5138 GB Notification: Performance of SimCode: time 1.002e-06/1.995, allocations: 0 / 0.871 GB, free: 78.54 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4428/2.438, allocations: 135.2 MB / 1.003 GB, free: 132.4 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.91/24.35, allocations: 15.27 kB / 1.003 GB, free: 132.4 MB / 0.5138 GB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > 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.csv","/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