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_Initialize.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_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",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.001382/0.001382, allocations: 105.2 kB / 17.06 MB, free: 6.02 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.001408/0.001408, allocations: 192 kB / 18 MB, free: 5.098 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.424/1.424, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 47.92 kB / 350.8 MB, free: 3.719 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3087/0.3102, allocations: 49.44 MB / 400.3 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.0381/0.3484, allocations: 32.85 MB / 433.1 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02133/0.3697, allocations: 8.969 MB / 442.1 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007477/0.3773, allocations: 239.2 kB / 442.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01951/0.3968, allocations: 7.944 MB / 450.3 MB, free: 6.637 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01421/0.411, allocations: 3.663 MB / 453.9 MB, free: 2.961 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007907/0.419, allocations: 2.094 MB / 456 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02224/0.4412, allocations: 13 MB / 469 MB, free: 3.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03725/0.4785, allocations: 22.49 MB / 491.5 MB, free: 13.18 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0134/0.492, allocations: 6.545 MB / 498.1 MB, free: 6.617 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01373/0.5057, allocations: 7.21 MB / 0.4934 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006386/0.5122, allocations: 1.879 MB / 0.4953 GB, free: 13.5 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008193/0.5204, allocations: 2.238 MB / 0.4974 GB, free: 11.27 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00798/0.5284, allocations: 3.745 MB / 0.5011 GB, free: 7.512 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01683/0.5453, allocations: 7.101 MB / 0.508 GB, free: 392 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03788/0.5832, allocations: 25.05 MB / 0.5325 GB, free: 7.246 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.898e-06/0.5832, allocations: 4 kB / 0.5325 GB, free: 7.242 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.5832, allocations: 0 / 0.5325 GB, free: 7.242 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007257/0.584, allocations: 0 / 0.5325 GB, free: 7.242 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.4611/1.045, allocations: 14.83 MB / 0.547 GB, free: 113.6 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/1.045, allocations: 7.938 kB / 0.547 GB, free: 113.6 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005971/1.051, allocations: 1.516 MB / 0.5485 GB, free: 112.5 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0372/1.088, allocations: 6.85 MB / 0.5552 GB, free: 109.5 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01675/1.105, allocations: 8.108 MB / 0.5631 GB, free: 103.1 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008001/1.106, allocations: 0.7902 MB / 0.5639 GB, free: 102.3 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004551/1.111, allocations: 1.046 MB / 0.5649 GB, free: 101.3 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04294/1.154, allocations: 17.22 MB / 0.5817 GB, free: 84.04 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005927/1.154, allocations: 23.77 kB / 0.5817 GB, free: 84.02 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004408/1.159, allocations: 443.3 kB / 0.5821 GB, free: 83.59 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006029/1.159, allocations: 0.6313 MB / 0.5828 GB, free: 82.96 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0325/1.192, allocations: 16.3 MB / 0.5987 GB, free: 66.62 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09417/1.286, allocations: 55.27 MB / 0.6527 GB, free: 10.85 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03198/1.318, allocations: 31.09 MB / 0.683 GB, free: 8.055 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008569/1.327, allocations: 4.306 MB / 0.6872 GB, free: 3.746 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02379/1.35, allocations: 10.44 MB / 0.6974 GB, free: 9.309 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.113e-05/1.351, allocations: 77.81 kB / 0.6975 GB, free: 9.223 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=398): time 7.073e-06/1.351, allocations: 3.938 kB / 0.6975 GB, free: 9.219 MB / 0.4982 GB Notification: Performance of matching and sorting (n=423): time 0.05858/1.409, allocations: 21.81 MB / 0.7188 GB, free: 3.031 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/1.409, allocations: 128.7 kB / 0.7189 GB, free: 2.887 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01098/1.42, allocations: 4.678 MB / 0.7235 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0009699/1.421, allocations: 97.7 kB / 0.7236 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004655/1.426, allocations: 4.815 MB / 0.7283 GB, free: 9.242 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002709/1.429, allocations: 1.511 MB / 0.7298 GB, free: 7.719 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004593/1.433, allocations: 1.133 MB / 0.7309 GB, free: 6.574 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001315/1.433, allocations: 309.1 kB / 0.7312 GB, free: 6.27 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005463/1.439, allocations: 2.908 MB / 0.734 GB, free: 3.355 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008142/1.447, allocations: 4.949 MB / 0.7388 GB, free: 13.48 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01421/1.461, allocations: 8.334 MB / 0.747 GB, free: 4.203 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.96e-05/1.461, allocations: 20 kB / 0.747 GB, free: 4.184 MB / 0.545 GB Notification: Performance of matching and sorting (n=764) (initialization): time 0.2679/1.729, allocations: 9.75 MB / 0.7565 GB, free: 188.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.033e-05/1.729, allocations: 31.56 kB / 0.7565 GB, free: 188.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001205/1.73, allocations: 67.31 kB / 0.7566 GB, free: 188.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004284/1.734, allocations: 1.647 MB / 0.7582 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005081/1.739, allocations: 1.32 MB / 0.7595 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02033/1.759, allocations: 17.77 MB / 0.7769 GB, free: 177.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005407/1.765, allocations: 329.5 kB / 0.7772 GB, free: 177.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001169/1.766, allocations: 279 kB / 0.7774 GB, free: 177.2 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * 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 (671): * Single equations (assignments): 667 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (7,28,61.2%), (1,1,100.0%), (14,44,39.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008019/1.774, allocations: 3.894 MB / 0.7812 GB, free: 175.3 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001483/1.775, allocations: 0.5081 MB / 0.7817 GB, free: 175.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01261/1.788, allocations: 7.789 MB / 0.7893 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.264e-05/1.788, allocations: 44 kB / 0.7894 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.989e-05/1.788, allocations: 18.75 kB / 0.7894 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-05/1.788, allocations: 22.72 kB / 0.7894 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02607/1.814, allocations: 17.46 MB / 0.8065 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.835e-05/1.814, allocations: 8 kB / 0.8065 GB, free: 157.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00309/1.817, allocations: 0.7302 MB / 0.8072 GB, free: 157.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003906/1.821, allocations: 1.553 MB / 0.8087 GB, free: 155.5 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000572/1.822, allocations: 104 kB / 0.8088 GB, free: 155.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01902/1.841, allocations: 21.23 MB / 0.8295 GB, free: 133.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/1.841, allocations: 7.938 kB / 0.8295 GB, free: 133.5 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01574/1.857, allocations: 11.48 MB / 0.8407 GB, free: 121.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002901/1.86, allocations: 1.173 MB / 0.8419 GB, free: 120.8 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00125/1.861, allocations: 87.98 kB / 0.842 GB, free: 120.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002908/1.864, allocations: 235.8 kB / 0.8422 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007725/1.865, allocations: 319.4 kB / 0.8425 GB, free: 120.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000275/1.865, allocations: 136 kB / 0.8426 GB, free: 120 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004518/1.87, allocations: 3.169 MB / 0.8457 GB, free: 116.8 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.9e-07/1.87, allocations: 0 / 0.8457 GB, free: 116.8 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006926/1.876, allocations: 1.865 MB / 0.8476 GB, free: 115 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,loadInertia.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 (364): * Single equations (assignments): 357 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (14,44,41.3%), (2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01501/1.892, allocations: 12.2 MB / 0.8595 GB, free: 102.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0118/1.903, allocations: 8.143 MB / 0.8674 GB, free: 94.37 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.309e-05/1.903, allocations: 2.406 kB / 0.8674 GB, free: 94.37 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006767/1.91, allocations: 4.659 MB / 0.872 GB, free: 89.62 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006071/1.916, allocations: 1.298 MB / 0.8732 GB, free: 88.36 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1005/2.017, allocations: 64.14 MB / 0.9359 GB, free: 21.45 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007498/2.024, allocations: 6.77 MB / 0.9425 GB, free: 14.63 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005327/2.03, allocations: 1.857 MB / 0.9443 GB, free: 12.77 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005513/2.035, allocations: 3.92 MB / 0.9481 GB, free: 8.848 MB / 0.545 GB Notification: Performance of SimCode: time 1.052e-06/2.035, allocations: 0 / 0.9481 GB, free: 8.848 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4843/2.52, allocations: 151.6 MB / 1.096 GB, free: 60.37 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.69/26.21, allocations: 8.875 kB / 1.096 GB, free: 60.36 MB / 0.545 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_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_Initialize/IMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches