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.00124/0.00124, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001352/0.001352, allocations: 200 kB / 18.01 MB, free: 5.047 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.372/1.372, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 43.94 kB / 350.8 MB, free: 3.676 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.2717, allocations: 49.43 MB / 400.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.03273/0.3045, allocations: 32.87 MB / 433.1 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02139/0.3259, allocations: 8.966 MB / 442.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007888/0.3339, allocations: 239.2 kB / 442.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01973/0.3537, allocations: 8.013 MB / 450.3 MB, free: 6.523 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01442/0.3681, allocations: 3.733 MB / 454.1 MB, free: 2.777 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006651/0.3748, allocations: 2.091 MB / 456.2 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01676/0.3915, allocations: 13 MB / 469.2 MB, free: 3.645 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03739/0.429, allocations: 22.48 MB / 491.6 MB, free: 12.99 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01093/0.44, allocations: 6.58 MB / 498.2 MB, free: 6.395 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01099/0.451, allocations: 7.206 MB / 0.4936 GB, free: 15.16 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004716/0.4558, allocations: 1.883 MB / 0.4954 GB, free: 13.28 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006806/0.4626, allocations: 2.242 MB / 0.4976 GB, free: 11.04 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006024/0.4686, allocations: 3.753 MB / 0.5013 GB, free: 7.277 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01442/0.4831, allocations: 7.098 MB / 0.5082 GB, free: 156 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03253/0.5157, allocations: 25.05 MB / 0.5327 GB, free: 7.016 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.5157, allocations: 0 / 0.5327 GB, free: 7.016 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.5157, allocations: 3.938 kB / 0.5327 GB, free: 7.012 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006345/0.5164, allocations: 0 / 0.5327 GB, free: 7.012 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.4874/1.004, allocations: 14.83 MB / 0.5472 GB, free: 113.5 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/1.004, allocations: 10.69 kB / 0.5472 GB, free: 113.5 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007043/1.011, allocations: 1.512 MB / 0.5487 GB, free: 112.4 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03813/1.049, allocations: 6.853 MB / 0.5553 GB, free: 109.3 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01891/1.068, allocations: 8.112 MB / 0.5633 GB, free: 102.8 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001005/1.069, allocations: 0.7897 MB / 0.564 GB, free: 102 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004964/1.074, allocations: 1.042 MB / 0.5651 GB, free: 101 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04287/1.117, allocations: 17.22 MB / 0.5819 GB, free: 83.71 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005809/1.118, allocations: 19.83 kB / 0.5819 GB, free: 83.69 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004094/1.122, allocations: 443.5 kB / 0.5823 GB, free: 83.27 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006011/1.122, allocations: 0.628 MB / 0.5829 GB, free: 82.64 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03279/1.155, allocations: 16.31 MB / 0.5988 GB, free: 66.3 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09441/1.25, allocations: 55.28 MB / 0.6528 GB, free: 10.52 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02847/1.278, allocations: 31.09 MB / 0.6832 GB, free: 7.734 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008227/1.286, allocations: 4.31 MB / 0.6874 GB, free: 3.422 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02309/1.31, allocations: 10.44 MB / 0.6976 GB, free: 8.984 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.356e-05/1.31, allocations: 73.81 kB / 0.6977 GB, free: 8.902 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=398): time 6.853e-06/1.31, allocations: 0 / 0.6977 GB, free: 8.902 MB / 0.4982 GB Notification: Performance of matching and sorting (n=423): time 0.0547/1.364, allocations: 21.81 MB / 0.719 GB, free: 2.715 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/1.365, allocations: 124.7 kB / 0.7191 GB, free: 2.574 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01059/1.375, allocations: 4.685 MB / 0.7237 GB, free: 13.88 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008622/1.376, allocations: 97.7 kB / 0.7238 GB, free: 13.78 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003715/1.38, allocations: 4.807 MB / 0.7284 GB, free: 8.93 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00193/1.382, allocations: 1.519 MB / 0.7299 GB, free: 7.398 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003574/1.385, allocations: 1.133 MB / 0.731 GB, free: 6.254 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 9.528e-05/1.385, allocations: 305.1 kB / 0.7313 GB, free: 5.953 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00524/1.391, allocations: 2.912 MB / 0.7342 GB, free: 3.035 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00653/1.397, allocations: 4.945 MB / 0.739 GB, free: 13.16 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01202/1.409, allocations: 8.334 MB / 0.7471 GB, free: 3.887 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.523e-05/1.409, allocations: 23.94 kB / 0.7472 GB, free: 3.863 MB / 0.545 GB Notification: Performance of matching and sorting (n=764) (initialization): time 0.259/1.668, allocations: 9.743 MB / 0.7567 GB, free: 188.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.323e-05/1.668, allocations: 39.91 kB / 0.7567 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001087/1.669, allocations: 61.62 kB / 0.7568 GB, free: 188.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004275/1.673, allocations: 1.65 MB / 0.7584 GB, free: 188.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004942/1.678, allocations: 1.319 MB / 0.7597 GB, free: 188.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01939/1.697, allocations: 17.78 MB / 0.777 GB, free: 177.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005009/1.702, allocations: 328.3 kB / 0.7773 GB, free: 177.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008449/1.703, allocations: 283.9 kB / 0.7776 GB, free: 177 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.005922/1.709, allocations: 3.888 MB / 0.7814 GB, free: 175.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001327/1.71, allocations: 0.512 MB / 0.7819 GB, free: 175.1 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01174/1.722, allocations: 7.788 MB / 0.7895 GB, free: 171.7 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.829e-05/1.722, allocations: 44.59 kB / 0.7896 GB, free: 171.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.309e-05/1.722, allocations: 21.72 kB / 0.7896 GB, free: 171.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.822e-05/1.722, allocations: 18.7 kB / 0.7896 GB, free: 171.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02631/1.749, allocations: 17.45 MB / 0.8066 GB, free: 157.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/1.749, allocations: 14.66 kB / 0.8067 GB, free: 157.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00305/1.752, allocations: 0.7216 MB / 0.8074 GB, free: 156.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003746/1.755, allocations: 1.555 MB / 0.8089 GB, free: 155.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003332/1.756, allocations: 99.97 kB / 0.809 GB, free: 155 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01893/1.775, allocations: 21.24 MB / 0.8297 GB, free: 133 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/1.775, allocations: 8 kB / 0.8297 GB, free: 133 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01595/1.791, allocations: 11.47 MB / 0.8409 GB, free: 121.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003253/1.794, allocations: 1.173 MB / 0.8421 GB, free: 120.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000884/1.795, allocations: 84 kB / 0.8422 GB, free: 120.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002539/1.798, allocations: 231.8 kB / 0.8424 GB, free: 120 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007606/1.798, allocations: 327.3 kB / 0.8427 GB, free: 119.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00027/1.799, allocations: 132 kB / 0.8428 GB, free: 119.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004213/1.803, allocations: 3.169 MB / 0.8459 GB, free: 116.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.21e-07/1.803, allocations: 0 / 0.8459 GB, free: 116.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006756/1.81, allocations: 1.861 MB / 0.8477 GB, free: 114.5 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.01548/1.825, allocations: 12.21 MB / 0.8597 GB, free: 102.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01228/1.837, allocations: 8.133 MB / 0.8676 GB, free: 93.92 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.384e-05/1.837, allocations: 1 kB / 0.8676 GB, free: 93.92 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007075/1.845, allocations: 4.66 MB / 0.8721 GB, free: 89.17 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006288/1.851, allocations: 1.305 MB / 0.8734 GB, free: 87.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09406/1.945, allocations: 64.14 MB / 0.9361 GB, free: 20.98 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006012/1.951, allocations: 6.77 MB / 0.9427 GB, free: 14.17 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004799/1.956, allocations: 1.857 MB / 0.9445 GB, free: 12.31 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004443/1.96, allocations: 3.909 MB / 0.9483 GB, free: 8.398 MB / 0.545 GB Notification: Performance of SimCode: time 1.032e-06/1.96, allocations: 0 / 0.9483 GB, free: 8.398 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4239/2.384, allocations: 151.6 MB / 1.096 GB, free: 59.56 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.21/25.6, allocations: 12.53 kB / 1.096 GB, free: 59.55 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