Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001132/0.001132, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.411/1.411, allocations: 225.4 MB / 240.1 MB, free: 15.07 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009011/0.000901, allocations: 88 kB / 292.1 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.805e-05/2.81e-05, allocations: 4 kB / 350.7 MB, free: 2.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1057, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3667/0.4725, allocations: 120.4 MB / 0.5103 GB, free: 1.637 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002975/0.4729, allocations: 91.89 kB / 0.5104 GB, free: 1.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5919/1.065, allocations: 136.7 MB / 0.6439 GB, free: 74.72 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.715e-06/1.065, allocations: 0 / 0.6439 GB, free: 74.72 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006769/1.065, allocations: 129.8 kB / 0.644 GB, free: 74.7 MB / 442.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.01769/1.083, allocations: 4.812 MB / 0.6487 GB, free: 72.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/1.083, allocations: 10.44 kB / 0.6487 GB, free: 72.46 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0036/1.087, allocations: 0.67 MB / 0.6494 GB, free: 72.09 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006875/1.094, allocations: 1.008 MB / 0.6503 GB, free: 71.73 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01338/1.107, allocations: 4.51 MB / 0.6547 GB, free: 69.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004838/1.108, allocations: 366.8 kB / 0.6551 GB, free: 69.36 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002195/1.11, allocations: 485.7 kB / 0.6556 GB, free: 69.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01971/1.13, allocations: 6.596 MB / 0.662 GB, free: 66.1 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002509/1.13, allocations: 14.97 kB / 0.662 GB, free: 66.09 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001466/1.131, allocations: 205.7 kB / 0.6622 GB, free: 65.94 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002193/1.132, allocations: 236.1 kB / 0.6624 GB, free: 65.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01105/1.143, allocations: 5.396 MB / 0.6677 GB, free: 63.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03517/1.178, allocations: 21.08 MB / 0.6883 GB, free: 49.62 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00727/1.185, allocations: 9.833 MB / 0.6979 GB, free: 38.75 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003057/1.188, allocations: 2.407 MB / 0.7002 GB, free: 36.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01008/1.198, allocations: 6.746 MB / 0.7068 GB, free: 29.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.805e-05/1.199, allocations: 56.56 kB / 0.7069 GB, free: 29.43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=217): time 5.691e-06/1.199, allocations: 0 / 0.7069 GB, free: 29.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=224): time 0.01158/1.21, allocations: 7.258 MB / 0.714 GB, free: 22.09 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/1.21, allocations: 77.41 kB / 0.714 GB, free: 22.01 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003751/1.214, allocations: 2.621 MB / 0.7166 GB, free: 19.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002846/1.214, allocations: 65.7 kB / 0.7167 GB, free: 19.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/1.215, allocations: 2.166 MB / 0.7188 GB, free: 17.12 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005066/1.216, allocations: 0.7529 MB / 0.7195 GB, free: 16.38 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/1.216, allocations: 55.94 kB / 0.7196 GB, free: 16.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/1.216, allocations: 403 kB / 0.72 GB, free: 15.93 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001484/1.218, allocations: 1.2 MB / 0.7211 GB, free: 14.72 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/1.219, allocations: 1.784 MB / 0.7229 GB, free: 12.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001736/1.221, allocations: 1.512 MB / 0.7243 GB, free: 11.19 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/1.221, allocations: 8 kB / 0.7244 GB, free: 11.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005455/1.227, allocations: 4.032 MB / 0.7283 GB, free: 7.105 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/1.227, allocations: 15.94 kB / 0.7283 GB, free: 7.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/1.227, allocations: 16 kB / 0.7283 GB, free: 7.074 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00148/1.228, allocations: 0.6461 MB / 0.729 GB, free: 6.418 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001948/1.23, allocations: 0.5461 MB / 0.7295 GB, free: 5.871 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008755/1.239, allocations: 9.99 MB / 0.7392 GB, free: 11.36 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002922/1.242, allocations: 107.9 kB / 0.7393 GB, free: 11.26 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003887/1.242, allocations: 99.98 kB / 0.7394 GB, free: 11.16 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (269): * Single equations (assignments): 264 * 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 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006292/1.243, allocations: 256.3 kB / 0.7397 GB, free: 10.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006965/1.244, allocations: 320.2 kB / 0.74 GB, free: 10.59 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006644/1.25, allocations: 3.774 MB / 0.7437 GB, free: 6.742 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.937e-05/1.25, allocations: 23.94 kB / 0.7437 GB, free: 6.719 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.848e-05/1.25, allocations: 12 kB / 0.7437 GB, free: 6.707 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.831e-05/1.25, allocations: 19.94 kB / 0.7437 GB, free: 6.688 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3017/1.552, allocations: 8.386 MB / 0.7519 GB, free: 82.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.602e-05/1.552, allocations: 2.688 kB / 0.7519 GB, free: 82.18 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001801/1.554, allocations: 341.6 kB / 0.7522 GB, free: 82.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002286/1.556, allocations: 0.8075 MB / 0.753 GB, free: 82.13 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004993/1.557, allocations: 59.64 kB / 0.7531 GB, free: 82.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01362/1.57, allocations: 14.35 MB / 0.7671 GB, free: 74.27 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.57, allocations: 6.797 kB / 0.7671 GB, free: 74.27 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008284/1.579, allocations: 5.664 MB / 0.7727 GB, free: 73.52 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001953/1.581, allocations: 0.6891 MB / 0.7733 GB, free: 73.42 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005906/1.581, allocations: 55.45 kB / 0.7734 GB, free: 73.42 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001436/1.583, allocations: 121.7 kB / 0.7735 GB, free: 73.42 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004677/1.583, allocations: 192.4 kB / 0.7737 GB, free: 73.42 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001457/1.583, allocations: 61.28 kB / 0.7737 GB, free: 73.42 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003415/1.587, allocations: 2.011 MB / 0.7757 GB, free: 73.26 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.81e-07/1.587, allocations: 0 / 0.7757 GB, free: 73.26 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004637/1.591, allocations: 0.9963 MB / 0.7767 GB, free: 73.26 MB / 458.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 148 * 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,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009209/1.601, allocations: 7.139 MB / 0.7836 GB, free: 71.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006018/1.607, allocations: 3.725 MB / 0.7873 GB, free: 70.89 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/1.607, allocations: 0.9688 kB / 0.7873 GB, free: 70.89 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004023/1.611, allocations: 2.543 MB / 0.7898 GB, free: 70.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004771/1.616, allocations: 0.8725 MB / 0.7906 GB, free: 70.15 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02121/1.637, allocations: 9.154 MB / 0.7996 GB, free: 67.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005495/1.642, allocations: 3.524 MB / 0.803 GB, free: 66.45 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003726/1.646, allocations: 0.7443 MB / 0.8037 GB, free: 66.36 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003373/1.65, allocations: 1.814 MB / 0.8055 GB, free: 64.85 MB / 458.7 MB Notification: Performance of SimCode: time 3.036e-06/1.65, allocations: 0 / 0.8055 GB, free: 64.85 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1344/1.784, allocations: 87.26 MB / 0.8907 GB, free: 20.57 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000144/1.784, allocations: 226.5 kB / 0.8909 GB, free: 20.34 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.768/6.552, allocations: 8.062 kB / 0.8909 GB, free: 20.34 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat does not exist to compare? outputFormat=mat