Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",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.001586/0.001586, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001729/0.001729, allocations: 194.9 kB / 18 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.374/1.374, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 51.92 kB / 350.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3025/0.3037, allocations: 49.43 MB / 400.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics): time 0.02646/0.3302, allocations: 24.77 MB / 425 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01651/0.3467, allocations: 7.345 MB / 432.4 MB, free: 8.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007625/0.3544, allocations: 191.4 kB / 432.6 MB, free: 8.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02027/0.3748, allocations: 8.834 MB / 441.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01056/0.3853, allocations: 2.96 MB / 444.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005975/0.3913, allocations: 1.718 MB / 446.1 MB, free: 10.86 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01514/0.4065, allocations: 10.72 MB / 456.8 MB, free: 108 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03722/0.4438, allocations: 21.83 MB / 478.6 MB, free: 10.14 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009645/0.4535, allocations: 5.728 MB / 484.4 MB, free: 4.395 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01048/0.464, allocations: 6.241 MB / 490.6 MB, free: 14.13 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005309/0.4693, allocations: 1.668 MB / 492.3 MB, free: 12.46 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007233/0.4766, allocations: 2.035 MB / 494.3 MB, free: 10.43 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006271/0.4829, allocations: 3.157 MB / 497.5 MB, free: 7.266 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0123/0.4952, allocations: 6.094 MB / 0.4917 GB, free: 1.148 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02938/0.5247, allocations: 22.37 MB / 0.5136 GB, free: 10.71 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.335e-06/0.5247, allocations: 4 kB / 0.5136 GB, free: 10.7 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.5247, allocations: 0 / 0.5136 GB, free: 10.7 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006567/0.5254, allocations: 0 / 0.5136 GB, free: 10.7 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2620 * Number of variables: 2620 Notification: Performance of Generate backend data structure: time 0.04302/0.5684, allocations: 12.94 MB / 0.5262 GB, free: 13.65 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.5685, allocations: 8.031 kB / 0.5262 GB, free: 13.64 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006718/0.5752, allocations: 1.548 MB / 0.5278 GB, free: 12.08 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03664/0.6119, allocations: 6.245 MB / 0.5339 GB, free: 5.824 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4557/1.068, allocations: 6.92 MB / 0.5406 GB, free: 113.3 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001037/1.069, allocations: 0.6978 MB / 0.5413 GB, free: 113.2 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005727/1.074, allocations: 0.9235 MB / 0.5422 GB, free: 113.2 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03706/1.112, allocations: 15.75 MB / 0.5576 GB, free: 106.9 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002695/1.112, allocations: 12.67 kB / 0.5576 GB, free: 106.9 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002426/1.114, allocations: 388.9 kB / 0.558 GB, free: 106.6 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004698/1.115, allocations: 0.5534 MB / 0.5585 GB, free: 106.6 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02695/1.142, allocations: 14.77 MB / 0.5729 GB, free: 94.24 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07855/1.22, allocations: 51.14 MB / 0.6229 GB, free: 42.77 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01944/1.24, allocations: 26.46 MB / 0.6487 GB, free: 13.3 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004643/1.244, allocations: 3.208 MB / 0.6518 GB, free: 10.09 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004675/1.245, allocations: 167.3 kB / 0.652 GB, free: 9.918 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.865e-05/1.245, allocations: 77.62 kB / 0.6521 GB, free: 9.832 MB / 462.1 MB Notification: Performance of pre-optimization done (n=398): time 7.394e-06/1.245, allocations: 0 / 0.6521 GB, free: 9.832 MB / 462.1 MB Notification: Performance of matching and sorting (n=404): time 0.03929/1.284, allocations: 17.41 MB / 0.6691 GB, free: 8.734 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.286e-05/1.284, allocations: 98.52 kB / 0.6692 GB, free: 8.625 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00733/1.292, allocations: 3.689 MB / 0.6728 GB, free: 4.984 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003891/1.292, allocations: 93.7 kB / 0.6729 GB, free: 4.887 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003252/1.295, allocations: 4.122 MB / 0.6769 GB, free: 0.9102 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00157/1.297, allocations: 1.451 MB / 0.6783 GB, free: 15.48 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002512/1.3, allocations: 1.14 MB / 0.6794 GB, free: 14.32 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/1.3, allocations: 305.1 kB / 0.6797 GB, free: 14.02 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004458/1.304, allocations: 2.791 MB / 0.6824 GB, free: 11.23 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005924/1.31, allocations: 4.959 MB / 0.6873 GB, free: 5.273 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01118/1.321, allocations: 8.315 MB / 0.6954 GB, free: 11.96 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.341e-05/1.321, allocations: 20 kB / 0.6954 GB, free: 11.94 MB / 0.4982 GB Notification: Performance of matching and sorting (n=752) (initialization): time 0.01703/1.338, allocations: 9.103 MB / 0.7043 GB, free: 2.816 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 9.643e-05/1.339, allocations: 36.53 kB / 0.7043 GB, free: 2.781 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001324/1.339, allocations: 72 kB / 0.7044 GB, free: 2.711 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003727/1.342, allocations: 1.23 MB / 0.7056 GB, free: 1.484 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005468/1.348, allocations: 1.322 MB / 0.7069 GB, free: 164 kB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01642/1.364, allocations: 9.937 MB / 0.7166 GB, free: 6.09 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004926/1.369, allocations: 331.6 kB / 0.7169 GB, free: 5.766 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001143/1.371, allocations: 284 kB / 0.7172 GB, free: 5.488 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 319 * 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 (694): * Single equations (assignments): 692 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,44,41.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007733/1.378, allocations: 3.713 MB / 0.7208 GB, free: 1.762 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001491/1.38, allocations: 417.3 kB / 0.7212 GB, free: 1.352 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01373/1.394, allocations: 6.693 MB / 0.7277 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009884/1.403, allocations: 5.599 MB / 0.7332 GB, free: 5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.904e-05/1.404, allocations: 8 kB / 0.7332 GB, free: 4.992 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.936e-05/1.404, allocations: 23.92 kB / 0.7332 GB, free: 4.969 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2754/1.679, allocations: 15.77 MB / 0.7486 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.679e-05/1.679, allocations: 3.906 kB / 0.7486 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002697/1.682, allocations: 0.7187 MB / 0.7493 GB, free: 173.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002913/1.685, allocations: 1.118 MB / 0.7504 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000276/1.685, allocations: 91.39 kB / 0.7505 GB, free: 173 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01095/1.696, allocations: 8.859 MB / 0.7592 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/1.696, allocations: 3.906 kB / 0.7592 GB, free: 168.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01411/1.71, allocations: 9.869 MB / 0.7688 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002377/1.712, allocations: 0.9769 MB / 0.7698 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006156/1.713, allocations: 75.47 kB / 0.7698 GB, free: 163.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002058/1.715, allocations: 205 kB / 0.77 GB, free: 163.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005862/1.716, allocations: 288.5 kB / 0.7703 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002181/1.716, allocations: 120.6 kB / 0.7704 GB, free: 163.6 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003223/1.719, allocations: 2.489 MB / 0.7729 GB, free: 162.7 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/1.719, allocations: 0 / 0.7729 GB, free: 162.7 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004947/1.724, allocations: 1.612 MB / 0.7744 GB, free: 162.5 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 2 (imcQS.rotorCage.port_p.reference.gamma,speed.phi) * 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 (389): * Single equations (assignments): 387 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,44,40.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01288/1.737, allocations: 10.6 MB / 0.7848 GB, free: 153.8 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01008/1.747, allocations: 7.149 MB / 0.7918 GB, free: 147.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.698e-06/1.747, allocations: 1.562 kB / 0.7918 GB, free: 147.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004938/1.752, allocations: 3.4 MB / 0.7951 GB, free: 144.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004529/1.757, allocations: 0.9763 MB / 0.796 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07404/1.831, allocations: 54.38 MB / 0.8491 GB, free: 86.64 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005498/1.836, allocations: 6.191 MB / 0.8552 GB, free: 80.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004414/1.841, allocations: 1.916 MB / 0.8571 GB, free: 78.48 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003686/1.845, allocations: 3.299 MB / 0.8603 GB, free: 75.18 MB / 0.5294 GB Notification: Performance of SimCode: time 9.11e-07/1.845, allocations: 0 / 0.8603 GB, free: 75.18 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4143/2.259, allocations: 127.1 MB / 0.9844 GB, free: 158.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.01/21.27, allocations: 8.516 kB / 0.9844 GB, free: 158.5 MB / 0.545 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Characteristics/IMC_Characteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches