Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.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.ComparisonPolyphase.IMC_DOL_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase",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.001689/0.001689, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.545/1.545, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008449/0.0008449, allocations: 91.16 kB / 281.2 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.013e-05/2.001e-05, allocations: 7.984 kB / 337.2 MB, free: 9.883 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09485/0.09489, allocations: 50.42 MB / 387.6 MB, free: 7.426 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3807/0.4756, allocations: 113.8 MB / 0.4897 GB, free: 12.79 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002773/0.476, allocations: 103.9 kB / 0.4898 GB, free: 12.68 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6019/1.078, allocations: 181.3 MB / 0.6669 GB, free: 38.86 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.635e-06/1.078, allocations: 0 / 0.6669 GB, free: 38.86 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007056/1.079, allocations: 198.8 kB / 0.667 GB, free: 38.67 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: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.02192/1.101, allocations: 7.628 MB / 0.6745 GB, free: 30.97 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/1.101, allocations: 8.031 kB / 0.6745 GB, free: 30.96 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01069/1.111, allocations: 1.82 MB / 0.6763 GB, free: 29.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01586/1.127, allocations: 6.955 MB / 0.6831 GB, free: 22.21 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004612/1.128, allocations: 264 kB / 0.6833 GB, free: 21.95 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002622/1.13, allocations: 483.8 kB / 0.6838 GB, free: 21.48 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01894/1.149, allocations: 8.522 MB / 0.6921 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02487/1.174, allocations: 9.59 MB / 0.7015 GB, free: 3.121 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002405/1.174, allocations: 7.906 kB / 0.7015 GB, free: 3.113 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001299/1.176, allocations: 4 kB / 0.7015 GB, free: 3.109 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002514/1.176, allocations: 368.3 kB / 0.7018 GB, free: 2.746 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3133/1.489, allocations: 32.95 MB / 0.734 GB, free: 44.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01759/1.507, allocations: 19.48 MB / 0.753 GB, free: 29.54 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005802/1.513, allocations: 3.464 MB / 0.7564 GB, free: 29.48 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01658/1.529, allocations: 9.18 MB / 0.7654 GB, free: 28.51 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.105e-05/1.529, allocations: 67.34 kB / 0.7654 GB, free: 28.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=317): time 4.539e-06/1.529, allocations: 0 / 0.7654 GB, free: 28.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=323): time 0.01998/1.549, allocations: 10.47 MB / 0.7757 GB, free: 25.17 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/1.55, allocations: 84.77 kB / 0.7758 GB, free: 25.11 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005207/1.555, allocations: 3.131 MB / 0.7788 GB, free: 23.93 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005424/1.555, allocations: 32.77 kB / 0.7788 GB, free: 23.89 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001964/1.557, allocations: 3.528 MB / 0.7823 GB, free: 21.46 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.558, allocations: 1.04 MB / 0.7833 GB, free: 20.64 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001938/1.559, allocations: 3.391 kB / 0.7833 GB, free: 20.64 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001999/1.559, allocations: 463.5 kB / 0.7837 GB, free: 20.27 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002246/1.561, allocations: 1.615 MB / 0.7853 GB, free: 19.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002846/1.564, allocations: 2.613 MB / 0.7879 GB, free: 17.71 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003738/1.568, allocations: 2.404 MB / 0.7902 GB, free: 16.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.011e-05/1.568, allocations: 7.25 kB / 0.7902 GB, free: 16.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=490) (initialization): time 0.008846/1.577, allocations: 5.635 MB / 0.7957 GB, free: 14.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.431e-05/1.577, allocations: 21.94 kB / 0.7958 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.893e-05/1.577, allocations: 29.09 kB / 0.7958 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001889/1.579, allocations: 0.7839 MB / 0.7965 GB, free: 14.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002887/1.581, allocations: 0.8012 MB / 0.7973 GB, free: 14.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01082/1.592, allocations: 14.26 MB / 0.8113 GB, free: 3.016 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004396/1.597, allocations: 110.1 kB / 0.8114 GB, free: 3.012 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001025/1.598, allocations: 156.7 kB / 0.8115 GB, free: 2.984 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 140 * Number of states: 0 () * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (427): * Single equations (assignments): 418 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 2,(1,100.0%) 2,(4,56.2%) 22} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007339/1.599, allocations: 217.2 kB / 0.8117 GB, free: 2.844 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0101/1.609, allocations: 5.075 MB / 0.8167 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001648/1.61, allocations: 408 kB / 0.8171 GB, free: 0.5664 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01123/1.622, allocations: 5.493 MB / 0.8224 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.401e-05/1.622, allocations: 31.53 kB / 0.8225 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.35e-05/1.622, allocations: 20.91 kB / 0.8225 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-05/1.622, allocations: 16.12 kB / 0.8225 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02445/1.646, allocations: 11.3 MB / 0.8335 GB, free: 8.602 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/1.646, allocations: 8.141 kB / 0.8335 GB, free: 8.598 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001794/1.648, allocations: 377.8 kB / 0.8339 GB, free: 8.309 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003768/1.652, allocations: 1.331 MB / 0.8352 GB, free: 7.211 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006377/1.653, allocations: 46.12 kB / 0.8352 GB, free: 7.176 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02571/1.678, allocations: 23.16 MB / 0.8579 GB, free: 0.9727 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.184e-05/1.678, allocations: 8.609 kB / 0.8579 GB, free: 0.9648 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02038/1.699, allocations: 8.55 MB / 0.8662 GB, free: 10.8 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003037/1.702, allocations: 0.8886 MB / 0.8671 GB, free: 9.977 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001197/1.703, allocations: 30.42 kB / 0.8671 GB, free: 9.953 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002468/1.705, allocations: 133.6 kB / 0.8672 GB, free: 9.855 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007549/1.706, allocations: 326.1 kB / 0.8676 GB, free: 9.656 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002265/1.706, allocations: 93.52 kB / 0.8676 GB, free: 9.574 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005362/1.712, allocations: 2.339 MB / 0.8699 GB, free: 7.52 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.712, allocations: 0 / 0.8699 GB, free: 7.52 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007998/1.72, allocations: 1.293 MB / 0.8712 GB, free: 6.234 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (booleanStepM[1].y,booleanStepM[2].y,booleanStepM[3].y,booleanStepM[4].y,booleanStepM[5].y,booleanStep3[1].y,booleanStep3[2].y,booleanStep3[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (193): * Single equations (assignments): 184 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(3,100.0%) 23,(6,72.2%) 46,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3143/2.034, allocations: 9.762 MB / 0.8807 GB, free: 87.35 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.009603/2.044, allocations: 5.122 MB / 0.8857 GB, free: 86.36 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.395e-05/2.044, allocations: 9.047 kB / 0.8857 GB, free: 86.36 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005607/2.05, allocations: 3.769 MB / 0.8894 GB, free: 85.33 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006202/2.056, allocations: 0.8365 MB / 0.8902 GB, free: 85.32 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03554/2.091, allocations: 13.63 MB / 0.9035 GB, free: 82.67 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00624/2.098, allocations: 5.239 MB / 0.9087 GB, free: 81.75 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004391/2.102, allocations: 0.9355 MB / 0.9096 GB, free: 81.64 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004861/2.107, allocations: 3.02 MB / 0.9125 GB, free: 81.64 MB / 474.7 MB Notification: Performance of SimCode: time 1.222e-06/2.107, allocations: 0 / 0.9125 GB, free: 81.64 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1746/2.282, allocations: 107.2 MB / 1.017 GB, free: 26.47 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/2.282, allocations: 219 kB / 1.017 GB, free: 26.18 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.35/7.632, allocations: 4 kB / 1.017 GB, free: 26.18 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_ComparisonPolyphase_IMC_DOL_Polyphase.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.ComparisonPolyphase.IMC_DOL_Polyphase_res.mat does not exist to compare? outputFormat=mat