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/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.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/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001316, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.436/1.436, allocations: 221.3 MB / 235.5 MB, free: 2.93 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.0009663/0.0009665, allocations: 92.03 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.358e-05/3.37e-05, allocations: 4 kB / 344 MB, free: 4.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1225, allocations: 50.42 MB / 394.4 MB, free: 1.734 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4403/0.5628, allocations: 133.3 MB / 0.5153 GB, free: 2.051 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003508/0.5633, allocations: 99.94 kB / 0.5154 GB, free: 1.953 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.288/1.851, allocations: 351.8 MB / 0.859 GB, free: 7.117 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.851, allocations: 0 / 0.859 GB, free: 7.117 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0008209/1.852, allocations: 219.7 kB / 0.8592 GB, free: 6.902 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.04056/1.893, allocations: 9.455 MB / 0.8684 GB, free: 13.36 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/1.893, allocations: 8.031 kB / 0.8684 GB, free: 13.35 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008443/1.901, allocations: 1.603 MB / 0.87 GB, free: 11.73 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03754/1.939, allocations: 4.292 MB / 0.8742 GB, free: 7.426 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7683/2.707, allocations: 8.404 MB / 0.8824 GB, free: 38.7 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001354/2.709, allocations: 0.6907 MB / 0.8831 GB, free: 38.68 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005867/2.714, allocations: 0.9112 MB / 0.8839 GB, free: 38.68 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06191/2.776, allocations: 15.79 MB / 0.8994 GB, free: 37.59 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009534/2.777, allocations: 14.16 kB / 0.8994 GB, free: 37.59 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006465/2.784, allocations: 400 kB / 0.8998 GB, free: 37.59 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001501/2.785, allocations: 0.7542 MB / 0.9005 GB, free: 37.56 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04097/2.826, allocations: 13.8 MB / 0.914 GB, free: 37.47 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1082/2.935, allocations: 52.59 MB / 0.9653 GB, free: 21.3 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02003/2.955, allocations: 19.99 MB / 0.9849 GB, free: 4.777 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009201/2.964, allocations: 3.57 MB / 0.9883 GB, free: 3.383 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009157/2.965, allocations: 184.4 kB / 0.9885 GB, free: 3.273 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001271/2.965, allocations: 75.53 kB / 0.9886 GB, free: 3.203 MB / 458.8 MB Notification: Performance of pre-optimization done (n=453): time 1.454e-05/2.965, allocations: 3.156 kB / 0.9886 GB, free: 3.203 MB / 458.8 MB Notification: Performance of matching and sorting (n=458): time 0.04912/3.014, allocations: 13.93 MB / 1.002 GB, free: 13.73 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/3.015, allocations: 100.8 kB / 1.002 GB, free: 13.66 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01377/3.028, allocations: 3.929 MB / 1.006 GB, free: 12.18 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001407/3.03, allocations: 97.08 kB / 1.006 GB, free: 12.09 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.005472/3.035, allocations: 4.201 MB / 1.01 GB, free: 8.938 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003635/3.039, allocations: 1.553 MB / 1.012 GB, free: 7.742 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001741/3.041, allocations: 126.2 kB / 1.012 GB, free: 7.645 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.001102/3.042, allocations: 0.5518 MB / 1.012 GB, free: 7.23 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008409/3.05, allocations: 2.984 MB / 1.015 GB, free: 6.043 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01029/3.061, allocations: 5.115 MB / 1.02 GB, free: 2.172 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008394/3.069, allocations: 4.201 MB / 1.025 GB, free: 0.5117 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.858e-05/3.069, allocations: 21.56 kB / 1.025 GB, free: 0.5117 MB / 474.8 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.02663/3.096, allocations: 10.12 MB / 1.034 GB, free: 11.18 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.000189/3.096, allocations: 32 kB / 1.034 GB, free: 11.15 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002469/3.096, allocations: 72 kB / 1.035 GB, free: 11.08 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004298/3.101, allocations: 1.37 MB / 1.036 GB, free: 10 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006584/3.107, allocations: 1.383 MB / 1.037 GB, free: 8.922 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02135/3.129, allocations: 11.58 MB / 1.048 GB, free: 14.51 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006882/3.136, allocations: 365.9 kB / 1.049 GB, free: 14.22 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002245/3.138, allocations: 298.5 kB / 1.049 GB, free: 13.94 MB / 0.4949 GB 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 () * 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.00347/3.141, allocations: 498.3 kB / 1.05 GB, free: 13.54 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002758/3.144, allocations: 457.6 kB / 1.05 GB, free: 13.09 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02618/3.17, allocations: 8.433 MB / 1.058 GB, free: 6.18 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01464/3.185, allocations: 6.123 MB / 1.064 GB, free: 0.9648 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.559e-05/3.185, allocations: 15.95 kB / 1.064 GB, free: 0.9492 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001202/3.185, allocations: 24.33 kB / 1.064 GB, free: 0.9492 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4663/3.652, allocations: 17.84 MB / 1.082 GB, free: 79.36 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.768e-05/3.652, allocations: 7.344 kB / 1.082 GB, free: 79.36 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004695/3.656, allocations: 0.7964 MB / 1.082 GB, free: 79.36 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004521/3.661, allocations: 1.247 MB / 1.084 GB, free: 79.33 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001306/3.662, allocations: 105.6 kB / 1.084 GB, free: 79.33 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01795/3.68, allocations: 10.54 MB / 1.094 GB, free: 76.64 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.488e-05/3.68, allocations: 12.62 kB / 1.094 GB, free: 76.64 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02169/3.702, allocations: 11.96 MB / 1.106 GB, free: 74.86 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004347/3.707, allocations: 1.128 MB / 1.107 GB, free: 74.77 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001571/3.708, allocations: 93.86 kB / 1.107 GB, free: 74.77 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00396/3.712, allocations: 245.9 kB / 1.107 GB, free: 74.77 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00122/3.713, allocations: 325.2 kB / 1.108 GB, free: 74.75 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00042/3.714, allocations: 142 kB / 1.108 GB, free: 74.75 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.006333/3.72, allocations: 2.991 MB / 1.111 GB, free: 74.55 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.983e-06/3.72, allocations: 0 / 1.111 GB, free: 74.55 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01067/3.731, allocations: 1.792 MB / 1.112 GB, free: 74.55 MB / 0.4949 GB 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 () * 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.02355/3.755, allocations: 15.07 MB / 1.127 GB, free: 70.45 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01684/3.771, allocations: 7.803 MB / 1.135 GB, free: 70.02 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 2.117e-05/3.772, allocations: 2.594 kB / 1.135 GB, free: 70.02 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.0104/3.782, allocations: 3.878 MB / 1.138 GB, free: 69.68 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009107/3.791, allocations: 0.9387 MB / 1.139 GB, free: 69.66 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07223/3.863, allocations: 18.78 MB / 1.158 GB, free: 65.78 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0177/3.881, allocations: 6.681 MB / 1.164 GB, free: 63.3 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.01076/3.892, allocations: 2.139 MB / 1.166 GB, free: 63.12 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01115/3.903, allocations: 3.567 MB / 1.17 GB, free: 60.13 MB / 0.4949 GB Notification: Performance of SimCode: time 1.653e-06/3.903, allocations: 0 / 1.17 GB, free: 60.13 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6126/4.516, allocations: 141.4 MB / 1.308 GB, free: 74.02 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001993/4.516, allocations: 270.2 kB / 1.308 GB, free: 73.69 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.535/11.05, allocations: 2.25 kB / 1.308 GB, free: 73.69 MB / 0.4949 GB (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