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.IMS_Characteristics.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.IMS_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",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.0009149/0.0009149, allocations: 90.55 kB / 16.3 MB, free: 5.996 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.0009335/0.0009335, allocations: 183.6 kB / 17.2 MB, free: 5.914 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.447/1.447, allocations: 223.2 MB / 241.1 MB, free: 5.379 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000269/0.000269, allocations: 10.33 kB / 300.8 MB, free: 6.062 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1286/0.1289, allocations: 50.42 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics): time 0.02336/0.1523, allocations: 21.58 MB / 372.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01767/0.17, allocations: 7.639 MB / 380.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005865/0.1759, allocations: 171.4 kB / 380.6 MB, free: 14.08 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006309/0.1823, allocations: 1.637 MB / 382.3 MB, free: 12.44 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01061/0.1929, allocations: 2.794 MB / 385.1 MB, free: 9.641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005321/0.1982, allocations: 1.293 MB / 386.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01936/0.2176, allocations: 10.83 MB / 397.2 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03725/0.2549, allocations: 19.6 MB / 416.8 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008599/0.2635, allocations: 4.35 MB / 421.1 MB, free: 5.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01011/0.2737, allocations: 4.728 MB / 425.9 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.2557/0.5295, allocations: 0.7147 MB / 426.6 MB, free: 22.42 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005954/0.5355, allocations: 1.003 MB / 427.6 MB, free: 22.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004151/0.5396, allocations: 2.15 MB / 429.7 MB, free: 22.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007271/0.5469, allocations: 2.307 MB / 432.1 MB, free: 22.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02692/0.5739, allocations: 20.89 MB / 452.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.5739, allocations: 0 / 452.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.036e-06/0.5739, allocations: 0 / 452.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0009015/0.5749, allocations: 3.25 kB / 452.9 MB, free: 13.81 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: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.043/0.6179, allocations: 12.18 MB / 465.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.849e-05/0.6179, allocations: 7.844 kB / 465.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009007/0.627, allocations: 1.792 MB / 466.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04612/0.6731, allocations: 8.267 MB / 475.2 MB, free: 4.332 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02149/0.6946, allocations: 7.381 MB / 482.6 MB, free: 404 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001063/0.6957, allocations: 0.8015 MB / 483.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008067/0.7038, allocations: 1.057 MB / 484.4 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0619/0.7657, allocations: 18.14 MB / 0.4908 GB, free: 3.82 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007973/0.7666, allocations: 22.58 kB / 0.4908 GB, free: 3.805 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006088/0.7727, allocations: 450.8 kB / 0.4912 GB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001002/0.7737, allocations: 0.6658 MB / 0.4919 GB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04883/0.8226, allocations: 17.48 MB / 0.509 GB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1401/0.9627, allocations: 58.82 MB / 0.5664 GB, free: 6.379 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2857/1.248, allocations: 37.43 MB / 0.6029 GB, free: 109.9 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007489/1.249, allocations: 202.1 kB / 0.6031 GB, free: 109.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.45e-05/1.249, allocations: 86.33 kB / 0.6032 GB, free: 109.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=524): time 7.264e-06/1.249, allocations: 0 / 0.6032 GB, free: 109.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=530): time 0.0521/1.301, allocations: 22.16 MB / 0.6249 GB, free: 105.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.428e-05/1.302, allocations: 105.7 kB / 0.625 GB, free: 105.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007506/1.309, allocations: 4.105 MB / 0.629 GB, free: 103.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009833/1.31, allocations: 109.3 kB / 0.6291 GB, free: 103.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002317/1.312, allocations: 4.492 MB / 0.6335 GB, free: 100.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00181/1.314, allocations: 1.798 MB / 0.6352 GB, free: 98.98 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003652/1.315, allocations: 145.7 kB / 0.6354 GB, free: 98.87 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003208/1.315, allocations: 0.5911 MB / 0.6359 GB, free: 98.45 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004642/1.32, allocations: 3.475 MB / 0.6393 GB, free: 97.13 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005872/1.325, allocations: 5.894 MB / 0.6451 GB, free: 92.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006461/1.332, allocations: 4.799 MB / 0.6498 GB, free: 90.03 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.995e-05/1.332, allocations: 24 kB / 0.6498 GB, free: 90.01 MB / 462.1 MB Notification: Performance of matching and sorting (n=916) (initialization): time 0.02092/1.353, allocations: 10.98 MB / 0.6605 GB, free: 80.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002172/1.353, allocations: 38.41 kB / 0.6606 GB, free: 80.37 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000243/1.353, allocations: 84 kB / 0.6606 GB, free: 80.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003997/1.357, allocations: 1.397 MB / 0.662 GB, free: 79.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006758/1.364, allocations: 1.613 MB / 0.6636 GB, free: 77.84 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01557/1.38, allocations: 10.9 MB / 0.6742 GB, free: 66.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006668/1.387, allocations: 407.3 kB / 0.6746 GB, free: 66.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001841/1.388, allocations: 336 kB / 0.6749 GB, free: 66.21 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 354 * 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 (843): * Single equations (assignments): 838 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.8%) 56} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01064/1.399, allocations: 4.162 MB / 0.679 GB, free: 62.03 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00198/1.401, allocations: 481.3 kB / 0.6794 GB, free: 61.56 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01878/1.42, allocations: 8.565 MB / 0.6878 GB, free: 52.91 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01287/1.433, allocations: 7.148 MB / 0.6948 GB, free: 45.67 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.574e-05/1.433, allocations: 12 kB / 0.6948 GB, free: 45.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001068/1.433, allocations: 27.89 kB / 0.6948 GB, free: 45.63 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04793/1.481, allocations: 19.39 MB / 0.7138 GB, free: 25.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.661e-05/1.481, allocations: 9.781 kB / 0.7138 GB, free: 25.97 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0042/1.485, allocations: 0.94 MB / 0.7147 GB, free: 25.03 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00349/1.489, allocations: 1.246 MB / 0.7159 GB, free: 23.78 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001114/1.49, allocations: 115.9 kB / 0.716 GB, free: 23.67 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01397/1.504, allocations: 9.626 MB / 0.7254 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/1.504, allocations: 7.844 kB / 0.7254 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02563/1.53, allocations: 12.62 MB / 0.7378 GB, free: 1.016 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005253/1.535, allocations: 1.183 MB / 0.7389 GB, free: 15.81 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002407/1.537, allocations: 93.86 kB / 0.739 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004558/1.542, allocations: 279.8 kB / 0.7393 GB, free: 15.45 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001553/1.543, allocations: 348.5 kB / 0.7396 GB, free: 15.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009951/1.544, allocations: 148 kB / 0.7397 GB, free: 14.96 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007651/1.552, allocations: 2.752 MB / 0.7424 GB, free: 12.19 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.02e-07/1.552, allocations: 0 / 0.7424 GB, free: 12.19 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.0132/1.565, allocations: 1.933 MB / 0.7443 GB, free: 10.26 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (imsQS.rotor.stray.port_p.reference.gamma,speed.phi) * 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 (502): * Single equations (assignments): 497 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(14,41.8%) 56} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02984/1.595, allocations: 13.89 MB / 0.7579 GB, free: 12.14 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02033/1.616, allocations: 8.798 MB / 0.7665 GB, free: 3.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.214e-05/1.616, allocations: 6.297 kB / 0.7665 GB, free: 3.266 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2529/1.869, allocations: 4.215 MB / 0.7706 GB, free: 185.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00687/1.876, allocations: 0.9923 MB / 0.7716 GB, free: 185.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1655/2.041, allocations: 108.7 MB / 0.8777 GB, free: 98.36 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01526/2.056, allocations: 7.179 MB / 0.8847 GB, free: 91.31 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.01035/2.067, allocations: 2.329 MB / 0.887 GB, free: 88.97 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008515/2.075, allocations: 3.862 MB / 0.8908 GB, free: 85.11 MB / 494.1 MB Notification: Performance of SimCode: time 1.102e-06/2.075, allocations: 1.5 kB / 0.8908 GB, free: 85.11 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4424/2.518, allocations: 143.8 MB / 1.031 GB, free: 136 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002005/2.518, allocations: 270.9 kB / 1.031 GB, free: 135.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.44/7.958, allocations: 1.312 kB / 1.031 GB, free: 135.6 MB / 494.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.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.IMS_Characteristics_res.mat does not exist to compare? outputFormat=mat