Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001025/0.001025, allocations: 180.6 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.314/1.314, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009416/0.0009414, allocations: 80.73 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002706/0.0002707, allocations: 12 kB / 351.2 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2299/0.2301, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3676/0.5978, allocations: 119.4 MB / 0.5088 GB, free: 50.16 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002609/0.5982, allocations: 98.77 kB / 0.5089 GB, free: 50.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3085/0.9067, allocations: 133.3 MB / 0.6391 GB, free: 10.64 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.9067, allocations: 0 / 0.6391 GB, free: 10.64 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0005845/0.9073, allocations: 131.8 kB / 0.6392 GB, free: 10.51 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01787/0.9252, allocations: 5.29 MB / 0.6444 GB, free: 5.141 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.9253, allocations: 8.031 kB / 0.6444 GB, free: 5.133 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00283/0.9281, allocations: 0.6787 MB / 0.645 GB, free: 4.445 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006693/0.9348, allocations: 0.9809 MB / 0.646 GB, free: 3.457 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01405/0.9489, allocations: 4.519 MB / 0.6504 GB, free: 14.86 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004599/0.9494, allocations: 365.7 kB / 0.6508 GB, free: 14.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00213/0.9516, allocations: 487.9 kB / 0.6512 GB, free: 14.02 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01922/0.9708, allocations: 6.718 MB / 0.6578 GB, free: 7.121 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002192/0.9711, allocations: 7.984 kB / 0.6578 GB, free: 7.113 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001428/0.9725, allocations: 208 kB / 0.658 GB, free: 6.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002718/0.9728, allocations: 233.8 kB / 0.6582 GB, free: 6.68 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01242/0.9853, allocations: 5.582 MB / 0.6637 GB, free: 1.086 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2908/1.276, allocations: 20.99 MB / 0.6842 GB, free: 51.14 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009592/1.286, allocations: 9.935 MB / 0.6939 GB, free: 44.51 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01083/1.297, allocations: 5.47 MB / 0.6992 GB, free: 43.73 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.412e-05/1.297, allocations: 60.09 kB / 0.6993 GB, free: 43.69 MB / 442.7 MB Notification: Performance of pre-optimization done (n=227): time 4.509e-06/1.297, allocations: 0 / 0.6993 GB, free: 43.69 MB / 442.7 MB Notification: Performance of matching and sorting (n=234): time 0.02362/1.32, allocations: 9.926 MB / 0.709 GB, free: 41.66 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/1.32, allocations: 79.34 kB / 0.709 GB, free: 41.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00603/1.326, allocations: 2.631 MB / 0.7116 GB, free: 41.37 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005503/1.327, allocations: 72.58 kB / 0.7117 GB, free: 41.34 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001822/1.329, allocations: 2.15 MB / 0.7138 GB, free: 40.68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001136/1.33, allocations: 0.7885 MB / 0.7145 GB, free: 40.28 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003947/1.33, allocations: 53.09 kB / 0.7146 GB, free: 40.28 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002102/1.331, allocations: 405.2 kB / 0.715 GB, free: 39.97 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002324/1.333, allocations: 1.31 MB / 0.7163 GB, free: 39.96 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002576/1.336, allocations: 1.872 MB / 0.7181 GB, free: 39.35 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002647/1.338, allocations: 1.597 MB / 0.7196 GB, free: 39.31 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.583e-05/1.338, allocations: 3.875 kB / 0.7197 GB, free: 39.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=327) (initialization): time 0.007599/1.346, allocations: 4.24 MB / 0.7238 GB, free: 38.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.994e-05/1.346, allocations: 13.28 kB / 0.7238 GB, free: 38.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.567e-05/1.346, allocations: 19.27 kB / 0.7238 GB, free: 38.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001745/1.348, allocations: 0.6542 MB / 0.7245 GB, free: 38.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002486/1.35, allocations: 0.5598 MB / 0.725 GB, free: 38.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009017/1.359, allocations: 10.21 MB / 0.735 GB, free: 31.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00299/1.362, allocations: 113.6 kB / 0.7351 GB, free: 31.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005552/1.363, allocations: 98.25 kB / 0.7352 GB, free: 31.54 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (277): * Single equations (assignments): 272 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003892/1.367, allocations: 1.612 MB / 0.7368 GB, free: 30.75 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001059/1.368, allocations: 314.7 kB / 0.7371 GB, free: 30.59 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007035/1.375, allocations: 4.003 MB / 0.741 GB, free: 28.84 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/1.375, allocations: 25.86 kB / 0.741 GB, free: 28.84 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.264e-05/1.375, allocations: 13.78 kB / 0.741 GB, free: 28.84 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.237e-05/1.375, allocations: 10.45 kB / 0.741 GB, free: 28.84 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01628/1.391, allocations: 8.698 MB / 0.7495 GB, free: 25.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.719e-05/1.391, allocations: 6.219 kB / 0.7495 GB, free: 25.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001636/1.393, allocations: 366.9 kB / 0.7499 GB, free: 25.12 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002196/1.395, allocations: 0.8234 MB / 0.7507 GB, free: 24.88 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002551/1.396, allocations: 65.88 kB / 0.7507 GB, free: 24.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01273/1.408, allocations: 14.67 MB / 0.7651 GB, free: 13.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/1.408, allocations: 7.453 kB / 0.7651 GB, free: 13.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0104/1.419, allocations: 6.007 MB / 0.7709 GB, free: 10.67 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002305/1.421, allocations: 0.7042 MB / 0.7716 GB, free: 10.22 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001026/1.422, allocations: 57.33 kB / 0.7717 GB, free: 10.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002206/1.424, allocations: 125 kB / 0.7718 GB, free: 10.15 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005166/1.425, allocations: 193.2 kB / 0.772 GB, free: 10.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002305/1.425, allocations: 69.33 kB / 0.772 GB, free: 10.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004098/1.429, allocations: 2.027 MB / 0.774 GB, free: 9.336 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.3e-07/1.429, allocations: 0 / 0.774 GB, free: 9.336 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005333/1.435, allocations: 0.9886 MB / 0.775 GB, free: 9.242 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (164): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01047/1.445, allocations: 7.407 MB / 0.7822 GB, free: 5.383 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0058/1.451, allocations: 3.953 MB / 0.7861 GB, free: 3.629 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/1.451, allocations: 0 / 0.7861 GB, free: 3.629 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003694/1.455, allocations: 2.692 MB / 0.7887 GB, free: 2.184 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005405/1.46, allocations: 0.869 MB / 0.7896 GB, free: 1.973 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06653/1.527, allocations: 39.67 MB / 0.8283 GB, free: 15.03 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005337/1.532, allocations: 3.521 MB / 0.8317 GB, free: 12.35 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.003342/1.535, allocations: 0.7442 MB / 0.8325 GB, free: 11.82 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003094/1.539, allocations: 1.826 MB / 0.8343 GB, free: 10.13 MB / 490.7 MB Notification: Performance of SimCode: time 9.12e-07/1.539, allocations: 0 / 0.8343 GB, free: 10.13 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3767/1.915, allocations: 87.17 MB / 0.9194 GB, free: 93.08 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001742/1.916, allocations: 244.1 kB / 0.9196 GB, free: 92.76 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.674/6.59, allocations: 0 / 0.9196 GB, free: 92.76 MB / 490.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat