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_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 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_Initialize,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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.001208/0.001208, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.001183/0.001183, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.598/1.598, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001411/0.001411, allocations: 55.92 kB / 328.1 MB, free: 3.773 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.114, allocations: 46.61 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.2664/0.3806, allocations: 32.96 MB / 407.6 MB, free: 7.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02562/0.4062, allocations: 8.973 MB / 416.6 MB, free: 1.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01209/0.4183, allocations: 204.8 kB / 416.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02045/0.4389, allocations: 8.031 MB / 424.8 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0164/0.4554, allocations: 3.773 MB / 428.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009898/0.4653, allocations: 2.125 MB / 430.7 MB, free: 6.391 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02052/0.4858, allocations: 13.15 MB / 443.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03655/0.5224, allocations: 22.47 MB / 466.4 MB, free: 3.922 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01262/0.5351, allocations: 6.654 MB / 473 MB, free: 13.25 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01374/0.5488, allocations: 7.311 MB / 480.3 MB, free: 5.914 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006775/0.5557, allocations: 1.895 MB / 482.2 MB, free: 4.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009061/0.5647, allocations: 2.25 MB / 484.5 MB, free: 1.77 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007172/0.572, allocations: 3.807 MB / 488.3 MB, free: 13.95 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01818/0.5902, allocations: 7.191 MB / 495.5 MB, free: 6.734 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03669/0.6269, allocations: 25.12 MB / 0.5084 GB, free: 13.54 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.717e-06/0.6269, allocations: 4 kB / 0.5084 GB, free: 13.53 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.627, allocations: 0 / 0.5084 GB, free: 13.53 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008948/0.6279, allocations: 0 / 0.5084 GB, free: 13.53 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: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.05898/0.6869, allocations: 15.02 MB / 0.5231 GB, free: 14.38 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.836e-05/0.6869, allocations: 8.031 kB / 0.5231 GB, free: 14.37 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007671/0.6946, allocations: 1.543 MB / 0.5246 GB, free: 12.82 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04607/0.7407, allocations: 7.839 MB / 0.5322 GB, free: 4.961 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02157/0.7623, allocations: 7.373 MB / 0.5394 GB, free: 13.51 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001263/0.7636, allocations: 0.8027 MB / 0.5402 GB, free: 12.71 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006023/0.7697, allocations: 1.058 MB / 0.5412 GB, free: 11.65 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.48/1.25, allocations: 17.67 MB / 0.5585 GB, free: 129.3 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001313/1.251, allocations: 21.53 kB / 0.5585 GB, free: 129.3 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007388/1.259, allocations: 444.9 kB / 0.559 GB, free: 129 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001936/1.261, allocations: 0.6643 MB / 0.5596 GB, free: 128.9 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04489/1.305, allocations: 16.98 MB / 0.5762 GB, free: 122.4 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1101/1.416, allocations: 56.63 MB / 0.6315 GB, free: 77.98 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02872/1.444, allocations: 40.05 MB / 0.6706 GB, free: 32.99 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007076/1.452, allocations: 4.479 MB / 0.675 GB, free: 28.51 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02727/1.479, allocations: 12.68 MB / 0.6874 GB, free: 15.98 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.281e-05/1.479, allocations: 85.73 kB / 0.6874 GB, free: 15.88 MB / 478.1 MB Notification: Performance of pre-optimization done (n=398): time 1.029e-05/1.479, allocations: 0 / 0.6874 GB, free: 15.88 MB / 478.1 MB Notification: Performance of matching and sorting (n=423): time 0.05369/1.533, allocations: 21.7 MB / 0.7086 GB, free: 10.26 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.724e-05/1.533, allocations: 124.7 kB / 0.7087 GB, free: 10.12 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01109/1.544, allocations: 4.831 MB / 0.7135 GB, free: 5.34 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001/1.545, allocations: 97.64 kB / 0.7136 GB, free: 5.238 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004188/1.549, allocations: 4.957 MB / 0.7184 GB, free: 360 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002156/1.551, allocations: 1.525 MB / 0.7199 GB, free: 14.84 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004171/1.556, allocations: 1.2 MB / 0.7211 GB, free: 13.63 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001137/1.556, allocations: 304.9 kB / 0.7214 GB, free: 13.33 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005992/1.562, allocations: 2.964 MB / 0.7242 GB, free: 10.36 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008044/1.57, allocations: 5.24 MB / 0.7294 GB, free: 4.078 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01472/1.584, allocations: 8.717 MB / 0.7379 GB, free: 10.3 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001049/1.585, allocations: 24 kB / 0.7379 GB, free: 10.28 MB / 0.5138 GB Notification: Performance of matching and sorting (n=803) (initialization): time 0.02209/1.607, allocations: 10.06 MB / 0.7477 GB, free: 168 kB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001332/1.607, allocations: 39.94 kB / 0.7478 GB, free: 128 kB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001625/1.607, allocations: 72 kB / 0.7478 GB, free: 56 kB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.257/1.864, allocations: 1.666 MB / 0.7495 GB, free: 164.7 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00621/1.87, allocations: 1.401 MB / 0.7508 GB, free: 164.7 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02391/1.894, allocations: 17.78 MB / 0.7682 GB, free: 155.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005799/1.9, allocations: 343 kB / 0.7685 GB, free: 155.4 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001306/1.901, allocations: 300.5 kB / 0.7688 GB, free: 155.3 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 335 * 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 (710): * Single equations (assignments): 706 * 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,67.3%), (1,1,100.0%), (14,44,41.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009024/1.91, allocations: 3.952 MB / 0.7727 GB, free: 153.4 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002062/1.913, allocations: 0.5261 MB / 0.7732 GB, free: 153.4 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0153/1.928, allocations: 7.798 MB / 0.7808 GB, free: 150 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.374e-05/1.928, allocations: 45.5 kB / 0.7808 GB, free: 150 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.542e-05/1.928, allocations: 19.59 kB / 0.7809 GB, free: 150 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.977e-05/1.928, allocations: 23.06 kB / 0.7809 GB, free: 150 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03231/1.96, allocations: 17.53 MB / 0.798 GB, free: 142.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.75e-05/1.96, allocations: 7.875 kB / 0.798 GB, free: 142.5 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003124/1.964, allocations: 0.7194 MB / 0.7987 GB, free: 142.5 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00412/1.968, allocations: 1.559 MB / 0.8002 GB, free: 142.1 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006317/1.968, allocations: 102.7 kB / 0.8003 GB, free: 142 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02001/1.988, allocations: 21.23 MB / 0.8211 GB, free: 124.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/1.988, allocations: 11.94 kB / 0.8211 GB, free: 124.2 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01889/2.007, allocations: 11.48 MB / 0.8323 GB, free: 113.7 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005803/2.013, allocations: 1.187 MB / 0.8334 GB, free: 112.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002755/2.016, allocations: 84 kB / 0.8335 GB, free: 112.5 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00426/2.02, allocations: 231.8 kB / 0.8337 GB, free: 112.3 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001178/2.021, allocations: 337.4 kB / 0.8341 GB, free: 112 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005856/2.022, allocations: 128 kB / 0.8342 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006001/2.028, allocations: 3.259 MB / 0.8374 GB, free: 108.6 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.91e-07/2.028, allocations: 0 / 0.8374 GB, free: 108.6 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009164/2.037, allocations: 1.894 MB / 0.8392 GB, free: 106.7 MB / 0.5138 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.strayReluctance.Phi.re,imc.stator.strayReluctance.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,40.8%), (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.01959/2.057, allocations: 12.21 MB / 0.8511 GB, free: 94.32 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01611/2.073, allocations: 8.265 MB / 0.8592 GB, free: 86 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/2.073, allocations: 8.891 kB / 0.8592 GB, free: 86 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.008416/2.082, allocations: 4.652 MB / 0.8638 GB, free: 81.25 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01084/2.092, allocations: 1.319 MB / 0.865 GB, free: 79.94 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1439/2.236, allocations: 65.79 MB / 0.9293 GB, free: 11.12 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01479/2.251, allocations: 6.843 MB / 0.936 GB, free: 4.242 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.0074/2.259, allocations: 1.925 MB / 0.9379 GB, free: 2.312 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2666/2.525, allocations: 4.053 MB / 0.9418 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.363e-06/2.525, allocations: 0 / 0.9418 GB, free: 172.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2257/2.751, allocations: 153.6 MB / 1.092 GB, free: 50.02 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.31/25.07, allocations: 8.781 kB / 1.092 GB, free: 50.01 MB / 0.5294 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_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_Initialize/IMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches