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.00178/0.00178, allocations: 104.5 kB / 17.58 MB, free: 5.426 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.002425/0.002425, allocations: 191.9 kB / 18.5 MB, free: 4.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.3/2.3, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001968/0.001968, allocations: 56.14 kB / 280.8 MB, free: 3.051 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1184, allocations: 46.62 MB / 327.4 MB, free: 4.355 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.03659/0.1551, allocations: 24.97 MB / 352.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02128/0.1764, allocations: 7.725 MB / 360.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00663/0.1831, allocations: 151.6 kB / 360.2 MB, free: 3.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02495/0.2081, allocations: 8.358 MB / 368.6 MB, free: 10.97 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0131/0.2213, allocations: 3.043 MB / 371.6 MB, free: 7.914 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007245/0.2285, allocations: 1.796 MB / 373.4 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.2587/0.4873, allocations: 11.12 MB / 384.6 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05509/0.5424, allocations: 23.54 MB / 408.1 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01466/0.5571, allocations: 5.956 MB / 414.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03578/0.593, allocations: 7.804 MB / 421.9 MB, free: 0 / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007677/0.6007, allocations: 1.752 MB / 423.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01064/0.6114, allocations: 2.128 MB / 425.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008951/0.6204, allocations: 3.406 MB / 429.2 MB, free: 8.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01597/0.6364, allocations: 6.451 MB / 435.6 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03859/0.6751, allocations: 23.01 MB / 458.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.45e-05/0.6751, allocations: 4 kB / 458.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.6752, allocations: 0 / 458.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007052/0.6759, allocations: 0 / 458.6 MB, free: 11.9 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.06363/0.7395, allocations: 13.62 MB / 472.2 MB, free: 14.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.317e-05/0.7396, allocations: 8.031 kB / 472.2 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009822/0.7495, allocations: 1.644 MB / 473.9 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07349/0.823, allocations: 7.205 MB / 481.1 MB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02047/0.8435, allocations: 6.498 MB / 487.6 MB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001114/0.8447, allocations: 0.7385 MB / 488.3 MB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004953/0.8497, allocations: 0.9686 MB / 489.3 MB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06411/0.9138, allocations: 16.63 MB / 0.4941 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006175/0.9145, allocations: 15.81 kB / 0.4941 GB, free: 12.87 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004365/0.9189, allocations: 408.3 kB / 0.4945 GB, free: 12.48 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001078/0.92, allocations: 0.591 MB / 0.4951 GB, free: 11.89 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05532/0.9754, allocations: 15.8 MB / 0.5105 GB, free: 12.07 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6115/1.587, allocations: 53.96 MB / 0.5632 GB, free: 120 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02911/1.616, allocations: 22.72 MB / 0.5854 GB, free: 102.1 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008328/1.625, allocations: 3.797 MB / 0.5891 GB, free: 100.6 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02736/1.652, allocations: 11.71 MB / 0.6005 GB, free: 93.96 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.739e-05/1.652, allocations: 69.27 kB / 0.6006 GB, free: 93.89 MB / 446.1 MB Notification: Performance of pre-optimization done (n=357): time 9.318e-06/1.652, allocations: 4 kB / 0.6006 GB, free: 93.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=362): time 0.05601/1.708, allocations: 17.51 MB / 0.6177 GB, free: 83.65 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/1.708, allocations: 88.5 kB / 0.6178 GB, free: 83.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01075/1.719, allocations: 4.766 MB / 0.6224 GB, free: 79.29 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008412/1.72, allocations: 81.7 kB / 0.6225 GB, free: 79.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003078/1.723, allocations: 4.499 MB / 0.6269 GB, free: 74.68 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001946/1.725, allocations: 1.253 MB / 0.6281 GB, free: 73.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004775/1.73, allocations: 1.187 MB / 0.6293 GB, free: 72.23 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.509e-05/1.73, allocations: 305.1 kB / 0.6296 GB, free: 71.93 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006745/1.737, allocations: 2.897 MB / 0.6324 GB, free: 69.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008596/1.745, allocations: 5.271 MB / 0.6375 GB, free: 62.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01498/1.76, allocations: 8.639 MB / 0.646 GB, free: 52.96 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.79e-05/1.76, allocations: 24 kB / 0.646 GB, free: 52.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02829/1.789, allocations: 9.615 MB / 0.6554 GB, free: 43.29 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001862/1.789, allocations: 47.28 kB / 0.6554 GB, free: 43.24 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001894/1.789, allocations: 80 kB / 0.6555 GB, free: 43.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006277/1.795, allocations: 1.45 MB / 0.6569 GB, free: 41.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008473/1.804, allocations: 1.33 MB / 0.6582 GB, free: 40.38 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02454/1.828, allocations: 12.69 MB / 0.6706 GB, free: 27.42 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008051/1.837, allocations: 367.5 kB / 0.671 GB, free: 27.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001634/1.838, allocations: 300 kB / 0.6713 GB, free: 26.77 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.009462/1.848, allocations: 3.92 MB / 0.6751 GB, free: 22.84 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001993/1.85, allocations: 454.3 kB / 0.6755 GB, free: 22.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02205/1.872, allocations: 6.776 MB / 0.6821 GB, free: 15.57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01619/1.888, allocations: 5.588 MB / 0.6876 GB, free: 9.941 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.243e-05/1.888, allocations: 12 kB / 0.6876 GB, free: 9.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001001/1.888, allocations: 19.92 kB / 0.6876 GB, free: 9.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04626/1.934, allocations: 15.47 MB / 0.7027 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.706e-05/1.935, allocations: 4 kB / 0.7027 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005805/1.94, allocations: 0.6637 MB / 0.7034 GB, free: 9.691 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006797/1.947, allocations: 1.317 MB / 0.7047 GB, free: 8.371 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001249/1.949, allocations: 90.41 kB / 0.7048 GB, free: 8.285 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3219/2.271, allocations: 11.55 MB / 0.716 GB, free: 143.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.351e-05/2.271, allocations: 8 kB / 0.716 GB, free: 143.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03068/2.301, allocations: 10 MB / 0.7258 GB, free: 141.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004038/2.305, allocations: 1.016 MB / 0.7268 GB, free: 141.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002443/2.308, allocations: 73.31 kB / 0.7269 GB, free: 141.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005546/2.313, allocations: 219.2 kB / 0.7271 GB, free: 141.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001404/2.315, allocations: 272.7 kB / 0.7273 GB, free: 141.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000789/2.316, allocations: 119.9 kB / 0.7275 GB, free: 141.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.01015/2.326, allocations: 3.235 MB / 0.7306 GB, free: 140.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.02e-07/2.326, allocations: 1.469 kB / 0.7306 GB, free: 140.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01213/2.338, allocations: 1.696 MB / 0.7323 GB, free: 140.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.02719/2.365, allocations: 10.98 MB / 0.743 GB, free: 135.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.03876/2.404, allocations: 12.1 MB / 0.7548 GB, free: 131.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.174e-05/2.404, allocations: 8 kB / 0.7548 GB, free: 131.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009585/2.414, allocations: 3.588 MB / 0.7583 GB, free: 128.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009714/2.424, allocations: 1.035 MB / 0.7593 GB, free: 127.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1473/2.571, allocations: 71.49 MB / 0.8291 GB, free: 54.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01324/2.584, allocations: 6.563 MB / 0.8356 GB, free: 47.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.01037/2.595, allocations: 2.098 MB / 0.8376 GB, free: 45.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00765/2.603, allocations: 3.549 MB / 0.8411 GB, free: 41.75 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/2.603, allocations: 0 / 0.8411 GB, free: 41.75 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7354/3.338, allocations: 136.6 MB / 0.9745 GB, free: 72.35 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 20.46/23.8, allocations: 8.312 kB / 0.9745 GB, free: 72.34 MB / 462.1 MB (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