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.000944/0.0009439, allocations: 91.73 kB / 16.3 MB, free: 6.457 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.001047/0.001047, allocations: 185.4 kB / 17.2 MB, free: 6.34 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.405/1.405, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000262/0.0002622, allocations: 7.766 kB / 300.8 MB, free: 5.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1081, allocations: 50.42 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02127/0.1294, allocations: 19.94 MB / 371.2 MB, free: 7.598 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01682/0.1463, allocations: 7.374 MB / 378.6 MB, free: 212 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00491/0.1513, allocations: 159.5 kB / 378.7 MB, free: 52 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005622/0.1569, allocations: 1.497 MB / 380.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009331/0.1663, allocations: 2.531 MB / 382.8 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004771/0.171, allocations: 1.244 MB / 384 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01819/0.1892, allocations: 10.12 MB / 394.1 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03484/0.2241, allocations: 19.12 MB / 413.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006916/0.2311, allocations: 3.98 MB / 417.2 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007046/0.2382, allocations: 4.253 MB / 421.5 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00201/0.2402, allocations: 0.6641 MB / 422.1 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003638/0.2438, allocations: 0.9878 MB / 423.1 MB, free: 3.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002475/0.2463, allocations: 2.033 MB / 425.2 MB, free: 1.461 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2715/0.5179, allocations: 2.13 MB / 427.3 MB, free: 24.13 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02641/0.5443, allocations: 19.55 MB / 446.8 MB, free: 16.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.5444, allocations: 0 / 446.8 MB, free: 16.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.917e-06/0.5444, allocations: 0 / 446.8 MB, free: 16.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0008991/0.5453, allocations: 0 / 446.8 MB, free: 16.61 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.04042/0.5857, allocations: 11.28 MB / 458.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.934e-05/0.5858, allocations: 10.94 kB / 458.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009067/0.5949, allocations: 1.611 MB / 459.7 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03614/0.6311, allocations: 6.17 MB / 465.9 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01847/0.6496, allocations: 6.999 MB / 472.9 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001002/0.6506, allocations: 0.7253 MB / 473.6 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007037/0.6577, allocations: 0.9538 MB / 474.6 MB, free: 6.434 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05048/0.7082, allocations: 16.02 MB / 490.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004614/0.7087, allocations: 11.28 kB / 490.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005234/0.7139, allocations: 400.6 kB / 491 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007366/0.7146, allocations: 0.5661 MB / 491.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04006/0.7547, allocations: 15.05 MB / 0.4947 GB, free: 15.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1073/0.862, allocations: 52.75 MB / 0.5462 GB, free: 10.49 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02148/0.8835, allocations: 20.04 MB / 0.5658 GB, free: 4.492 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000741/0.8843, allocations: 186.8 kB / 0.566 GB, free: 4.309 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.317e-05/0.8844, allocations: 82.09 kB / 0.5661 GB, free: 4.219 MB / 446.1 MB Notification: Performance of pre-optimization done (n=453): time 6.542e-06/0.8844, allocations: 4 kB / 0.5661 GB, free: 4.215 MB / 446.1 MB Notification: Performance of matching and sorting (n=458): time 0.3456/1.23, allocations: 20.82 MB / 0.5864 GB, free: 147.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/1.23, allocations: 98.69 kB / 0.5865 GB, free: 147.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009289/1.239, allocations: 4.428 MB / 0.5908 GB, free: 147.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001323/1.241, allocations: 98.39 kB / 0.5909 GB, free: 147.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002665/1.244, allocations: 4.197 MB / 0.595 GB, free: 145.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001931/1.245, allocations: 1.562 MB / 0.5966 GB, free: 144.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003999/1.246, allocations: 124.5 kB / 0.5967 GB, free: 144 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003464/1.246, allocations: 0.5574 MB / 0.5972 GB, free: 143.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004935/1.251, allocations: 3.079 MB / 0.6002 GB, free: 142.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006136/1.257, allocations: 5.198 MB / 0.6053 GB, free: 138.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007338/1.265, allocations: 4.271 MB / 0.6095 GB, free: 136.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.876e-05/1.265, allocations: 19.56 kB / 0.6095 GB, free: 136.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.01955/1.284, allocations: 9.858 MB / 0.6191 GB, free: 132.6 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.568e-05/1.285, allocations: 41.52 kB / 0.6192 GB, free: 132.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001335/1.285, allocations: 69.19 kB / 0.6192 GB, free: 132.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003527/1.288, allocations: 1.362 MB / 0.6205 GB, free: 132.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005944/1.294, allocations: 1.392 MB / 0.6219 GB, free: 132.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01577/1.31, allocations: 11.93 MB / 0.6336 GB, free: 122.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005902/1.316, allocations: 355.3 kB / 0.6339 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002007/1.318, allocations: 291.1 kB / 0.6342 GB, free: 121.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 311 * 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.01098/1.329, allocations: 3.889 MB / 0.638 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001433/1.33, allocations: 460.2 kB / 0.6384 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/1.343, allocations: 8.569 MB / 0.6468 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008961/1.352, allocations: 6.272 MB / 0.6529 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.121e-05/1.352, allocations: 12 kB / 0.6529 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.641e-05/1.352, allocations: 27.91 kB / 0.6529 GB, free: 103.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02846/1.381, allocations: 17.62 MB / 0.6702 GB, free: 85.56 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-05/1.381, allocations: 8.125 kB / 0.6702 GB, free: 85.55 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003243/1.384, allocations: 0.8112 MB / 0.671 GB, free: 84.74 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003041/1.387, allocations: 1.27 MB / 0.6722 GB, free: 83.46 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007836/1.388, allocations: 99.98 kB / 0.6723 GB, free: 83.37 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01274/1.401, allocations: 10.86 MB / 0.6829 GB, free: 72.25 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.434e-06/1.401, allocations: 11.94 kB / 0.6829 GB, free: 72.24 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01595/1.417, allocations: 11.97 MB / 0.6946 GB, free: 59.94 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003337/1.42, allocations: 1.093 MB / 0.6957 GB, free: 58.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001173/1.421, allocations: 91.98 kB / 0.6958 GB, free: 58.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002721/1.424, allocations: 243.6 kB / 0.696 GB, free: 58.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006153/1.425, allocations: 323.5 kB / 0.6963 GB, free: 58.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000265/1.425, allocations: 140 kB / 0.6964 GB, free: 58.05 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004615/1.429, allocations: 3.048 MB / 0.6994 GB, free: 54.99 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.31e-07/1.429, allocations: 0 / 0.6994 GB, free: 54.99 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00804/1.438, allocations: 1.725 MB / 0.7011 GB, free: 53.27 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (418): * Single equations (assignments): 412 * 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.01742/1.455, allocations: 14.54 MB / 0.7153 GB, free: 38.63 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01234/1.467, allocations: 8.005 MB / 0.7231 GB, free: 30.61 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.198e-05/1.467, allocations: 0.8125 kB / 0.7231 GB, free: 30.61 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006512/1.474, allocations: 3.952 MB / 0.727 GB, free: 26.64 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004851/1.479, allocations: 0.9203 MB / 0.7279 GB, free: 25.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3852/1.864, allocations: 99.52 MB / 0.8251 GB, free: 124 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01452/1.879, allocations: 6.666 MB / 0.8316 GB, free: 121.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007376/1.886, allocations: 2.124 MB / 0.8336 GB, free: 121.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006478/1.893, allocations: 3.571 MB / 0.8371 GB, free: 118.4 MB / 478.1 MB Notification: Performance of SimCode: time 9.42e-07/1.893, allocations: 0 / 0.8371 GB, free: 118.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4483/2.341, allocations: 134.5 MB / 0.9685 GB, free: 131.4 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000246/2.341, allocations: 304.7 kB / 0.9688 GB, free: 131 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.102/7.443, allocations: 8.688 kB / 0.9688 GB, free: 131 MB / 478.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