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_withLosses.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_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",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.001005/0.001006, allocations: 90.83 kB / 16.31 MB, free: 6.008 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.0009254/0.0009253, allocations: 181.4 kB / 17.21 MB, free: 5.902 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.421/1.421, allocations: 223.2 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002632/0.0002633, allocations: 6.219 kB / 300.9 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1139, allocations: 50.43 MB / 351.4 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02186/0.1358, allocations: 21.62 MB / 373 MB, free: 5.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01589/0.1518, allocations: 7.196 MB / 380.2 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006593/0.1584, allocations: 163.6 kB / 380.3 MB, free: 14.45 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007091/0.1655, allocations: 1.34 MB / 381.7 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01068/0.1763, allocations: 2.448 MB / 384.1 MB, free: 10.64 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005436/0.1817, allocations: 1.235 MB / 385.4 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02033/0.2021, allocations: 13.5 MB / 398.9 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03954/0.2417, allocations: 19.32 MB / 418.2 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008424/0.2501, allocations: 4.354 MB / 422.5 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2495/0.4997, allocations: 4.79 MB / 427.3 MB, free: 18.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003649/0.5034, allocations: 0.6568 MB / 428 MB, free: 18.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005707/0.5091, allocations: 1.049 MB / 429 MB, free: 18.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004268/0.5134, allocations: 2.059 MB / 431.1 MB, free: 18.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006293/0.5197, allocations: 2.134 MB / 433.2 MB, free: 18.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02494/0.5446, allocations: 19.6 MB / 452.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.5447, allocations: 0 / 452.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.737e-06/0.5447, allocations: 0 / 452.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0007956/0.5455, allocations: 2.969 kB / 452.8 MB, free: 11.11 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03674/0.5823, allocations: 11.34 MB / 464.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.5823, allocations: 11.12 kB / 464.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008208/0.5906, allocations: 1.613 MB / 465.8 MB, free: 5.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0339/0.6245, allocations: 6.246 MB / 472 MB, free: 2.738 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01962/0.6441, allocations: 6.994 MB / 479 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001079/0.6453, allocations: 0.7221 MB / 479.8 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005925/0.6512, allocations: 0.9578 MB / 480.7 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06268/0.7139, allocations: 16.11 MB / 496.8 MB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009113/0.7149, allocations: 20.55 kB / 496.9 MB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006934/0.7218, allocations: 407.4 kB / 497.2 MB, free: 6.656 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001001/0.7229, allocations: 0.5618 MB / 497.8 MB, free: 6.133 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05057/0.7735, allocations: 15.06 MB / 0.5008 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.115/0.8885, allocations: 52.8 MB / 0.5524 GB, free: 2.086 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02192/0.9105, allocations: 20.09 MB / 0.572 GB, free: 12.04 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008535/0.9191, allocations: 3.682 MB / 0.5756 GB, free: 8.359 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000798/0.9199, allocations: 182.4 kB / 0.5758 GB, free: 8.176 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001232/0.9201, allocations: 86.03 kB / 0.5759 GB, free: 8.082 MB / 462.1 MB Notification: Performance of pre-optimization done (n=453): time 1.018e-05/0.9201, allocations: 0 / 0.5759 GB, free: 8.082 MB / 462.1 MB Notification: Performance of matching and sorting (n=458): time 0.3648/1.285, allocations: 22.9 MB / 0.5982 GB, free: 142.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.141e-05/1.285, allocations: 97.62 kB / 0.5983 GB, free: 142.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007749/1.293, allocations: 4.469 MB / 0.6027 GB, free: 141.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001093/1.294, allocations: 94.58 kB / 0.6028 GB, free: 141.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003416/1.297, allocations: 4.204 MB / 0.6069 GB, free: 138.5 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002677/1.3, allocations: 1.559 MB / 0.6084 GB, free: 137.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003979/1.3, allocations: 119.4 kB / 0.6085 GB, free: 137.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003565/1.301, allocations: 0.558 MB / 0.6091 GB, free: 136.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004871/1.306, allocations: 3.076 MB / 0.6121 GB, free: 135.6 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00581/1.312, allocations: 5.229 MB / 0.6172 GB, free: 131.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006219/1.318, allocations: 4.273 MB / 0.6214 GB, free: 129.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.12e-05/1.318, allocations: 19.22 kB / 0.6214 GB, free: 129.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.0158/1.334, allocations: 9.872 MB / 0.631 GB, free: 124 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.069e-05/1.334, allocations: 39.08 kB / 0.6311 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001341/1.334, allocations: 73.97 kB / 0.6311 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003317/1.337, allocations: 1.374 MB / 0.6325 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005282/1.343, allocations: 1.389 MB / 0.6338 GB, free: 121.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01506/1.358, allocations: 11.65 MB / 0.6452 GB, free: 110.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006782/1.364, allocations: 359.4 kB / 0.6455 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001182/1.366, allocations: 292.5 kB / 0.6458 GB, free: 109.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009644/1.375, allocations: 3.892 MB / 0.6496 GB, free: 105.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00144/1.377, allocations: 458.3 kB / 0.6501 GB, free: 105.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0129/1.39, allocations: 8.576 MB / 0.6584 GB, free: 96.51 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008465/1.398, allocations: 6.269 MB / 0.6646 GB, free: 90.23 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.859e-05/1.398, allocations: 12 kB / 0.6646 GB, free: 90.21 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-05/1.398, allocations: 31.86 kB / 0.6646 GB, free: 90.18 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02965/1.428, allocations: 17.73 MB / 0.6819 GB, free: 72.33 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-05/1.428, allocations: 8 kB / 0.6819 GB, free: 72.32 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002971/1.431, allocations: 0.8036 MB / 0.6827 GB, free: 71.52 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00308/1.434, allocations: 1.278 MB / 0.684 GB, free: 70.24 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003937/1.434, allocations: 104 kB / 0.6841 GB, free: 70.14 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01217/1.447, allocations: 10.56 MB / 0.6944 GB, free: 59.32 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/1.447, allocations: 11.94 kB / 0.6944 GB, free: 59.31 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01651/1.463, allocations: 11.26 MB / 0.7054 GB, free: 47.91 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003118/1.466, allocations: 1.108 MB / 0.7065 GB, free: 46.78 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001454/1.468, allocations: 95.98 kB / 0.7066 GB, free: 46.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003195/1.471, allocations: 235.8 kB / 0.7068 GB, free: 46.45 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007172/1.472, allocations: 327.6 kB / 0.7071 GB, free: 46.13 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003369/1.472, allocations: 136 kB / 0.7072 GB, free: 46 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006785/1.479, allocations: 3.08 MB / 0.7102 GB, free: 42.91 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.21e-07/1.479, allocations: 4 kB / 0.7102 GB, free: 42.91 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008782/1.488, allocations: 1.726 MB / 0.7119 GB, free: 41.19 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * 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 (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01926/1.507, allocations: 12.28 MB / 0.7239 GB, free: 28.91 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01413/1.521, allocations: 7.994 MB / 0.7317 GB, free: 20.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/1.521, allocations: 10.58 kB / 0.7317 GB, free: 20.89 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00649/1.528, allocations: 3.975 MB / 0.7356 GB, free: 16.89 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007557/1.535, allocations: 1.003 MB / 0.7366 GB, free: 15.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4249/1.96, allocations: 53.31 MB / 0.7887 GB, free: 124.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01157/1.972, allocations: 6.52 MB / 0.795 GB, free: 122.1 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006953/1.979, allocations: 2.114 MB / 0.7971 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008437/1.987, allocations: 3.571 MB / 0.8006 GB, free: 118.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.222e-06/1.987, allocations: 0 / 0.8006 GB, free: 118.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4634/2.451, allocations: 135.3 MB / 0.9327 GB, free: 96.2 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/2.451, allocations: 313 kB / 0.933 GB, free: 95.85 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.152/7.603, allocations: 0 / 0.933 GB, free: 95.85 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat does not exist to compare? outputFormat=mat