Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.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.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 180.9 kB / 8.135 MB, free: 2.223 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.207/1.207, allocations: 221.4 MB / 229.9 MB, free: 3.125 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.0009884/0.0009883, allocations: 91.3 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09243/0.09345, allocations: 55.83 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.2731, allocations: 50.4 MB / 387 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1382/0.4113, allocations: 115.8 MB / 0.4911 GB, free: 2.875 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003275/0.4117, allocations: 101.1 kB / 0.4912 GB, free: 2.777 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.3171/0.7289, allocations: 79.39 MB / 0.5687 GB, free: 41.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.7289, allocations: 12 kB / 0.5687 GB, free: 41.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002977/0.7319, allocations: 0.6006 MB / 0.5693 GB, free: 40.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00681/0.7387, allocations: 3.143 MB / 0.5724 GB, free: 37.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.7389, allocations: 103.9 kB / 0.5725 GB, free: 37.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000517/0.7394, allocations: 180 kB / 0.5726 GB, free: 37.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005005/0.7444, allocations: 3.125 MB / 0.5757 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00547/0.7499, allocations: 3.643 MB / 0.5792 GB, free: 30.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.62e-05/0.75, allocations: 4 kB / 0.5792 GB, free: 30.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002947/0.7503, allocations: 7.938 kB / 0.5793 GB, free: 30.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.87e-05/0.7504, allocations: 142.1 kB / 0.5794 GB, free: 30.06 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01746/0.7679, allocations: 13.28 MB / 0.5924 GB, free: 16.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00132/0.7692, allocations: 1.114 MB / 0.5934 GB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001619/0.7709, allocations: 1.328 MB / 0.5947 GB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004587/0.7755, allocations: 3.204 MB / 0.5979 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.7755, allocations: 51.88 kB / 0.5979 GB, free: 10.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=164): time 3.296e-06/0.7755, allocations: 0 / 0.5979 GB, free: 10.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=168): time 0.007402/0.7829, allocations: 4.903 MB / 0.6027 GB, free: 5.629 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.783, allocations: 99.11 kB / 0.6028 GB, free: 5.516 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001853/0.7848, allocations: 1.409 MB / 0.6042 GB, free: 4.109 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.7849, allocations: 25.7 kB / 0.6042 GB, free: 4.078 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003918/0.7853, allocations: 1.153 MB / 0.6053 GB, free: 2.906 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002854/0.7856, allocations: 0.5311 MB / 0.6058 GB, free: 2.367 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.852e-05/0.7857, allocations: 4 kB / 0.6058 GB, free: 2.363 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.998e-05/0.7858, allocations: 381.8 kB / 0.6062 GB, free: 1.984 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/0.7869, allocations: 0.8044 MB / 0.607 GB, free: 1.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001307/0.7882, allocations: 1.325 MB / 0.6083 GB, free: 15.62 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001714/0.7899, allocations: 1.056 MB / 0.6093 GB, free: 14.57 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/0.7899, allocations: 4 kB / 0.6093 GB, free: 14.56 MB / 394.7 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.004553/0.7945, allocations: 2.769 MB / 0.612 GB, free: 11.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001962/0.7965, allocations: 6.525 MB / 0.6184 GB, free: 4.625 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.254e-05/0.7965, allocations: 16 kB / 0.6184 GB, free: 4.609 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001273/0.7978, allocations: 0.5263 MB / 0.6189 GB, free: 4.066 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001725/0.7995, allocations: 403.3 kB / 0.6193 GB, free: 3.672 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006715/0.8062, allocations: 6.664 MB / 0.6258 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/0.8078, allocations: 51.86 kB / 0.6259 GB, free: 12.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001559/0.8079, allocations: 79.98 kB / 0.626 GB, free: 12.53 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.109e-06/0.8079, allocations: 4 kB / 0.626 GB, free: 12.52 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004115/0.8121, allocations: 2.543 MB / 0.6284 GB, free: 9.945 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.791e-05/0.8121, allocations: 16.41 kB / 0.6285 GB, free: 9.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/0.8133, allocations: 0.5186 MB / 0.629 GB, free: 9.398 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001599/0.8149, allocations: 399.4 kB / 0.6293 GB, free: 9.008 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006787/0.8217, allocations: 6.68 MB / 0.6359 GB, free: 1.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001464/0.8232, allocations: 43.86 kB / 0.6359 GB, free: 1.938 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001599/0.8233, allocations: 80 kB / 0.636 GB, free: 1.859 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0003437/0.8237, allocations: 160.3 kB / 0.6361 GB, free: 1.695 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002997/0.824, allocations: 201.7 kB / 0.6363 GB, free: 1.496 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004543/0.8285, allocations: 2.619 MB / 0.6389 GB, free: 14.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.8286, allocations: 16 kB / 0.6389 GB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.8286, allocations: 4 kB / 0.6389 GB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-05/0.8286, allocations: 7.969 kB / 0.6389 GB, free: 14.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008478/0.8371, allocations: 5.392 MB / 0.6442 GB, free: 9.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.8371, allocations: 0 / 0.6442 GB, free: 9.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.8382, allocations: 219.7 kB / 0.6444 GB, free: 9.035 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001604/0.8398, allocations: 0.6523 MB / 0.645 GB, free: 8.367 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001053/0.84, allocations: 19.98 kB / 0.645 GB, free: 8.348 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1433/0.9832, allocations: 10.46 MB / 0.6553 GB, free: 119.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.9833, allocations: 7.406 kB / 0.6553 GB, free: 119.7 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00511/0.9884, allocations: 4.056 MB / 0.6592 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006253/0.9947, allocations: 5.709 MB / 0.6648 GB, free: 118 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009223/0.9956, allocations: 475.5 kB / 0.6653 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003281/0.9959, allocations: 6.719 kB / 0.6653 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/0.997, allocations: 50.67 kB / 0.6653 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/0.9972, allocations: 101.4 kB / 0.6654 GB, free: 117.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/0.9974, allocations: 41.34 kB / 0.6654 GB, free: 117.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001371/0.9987, allocations: 1.06 MB / 0.6665 GB, free: 117.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004185/1.003, allocations: 1.056 MB / 0.6675 GB, free: 117.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (117): * Single equations (assignments): 112 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005249/1.003, allocations: 454.1 kB / 0.6679 GB, free: 117.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004823/1.008, allocations: 4.219 MB / 0.6721 GB, free: 116.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.227e-06/1.008, allocations: 3.062 kB / 0.6721 GB, free: 116.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002039/1.01, allocations: 1.69 MB / 0.6737 GB, free: 116.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002049/1.012, allocations: 479.7 kB / 0.6742 GB, free: 116.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008605/1.021, allocations: 4.862 MB / 0.6789 GB, free: 115.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002109/1.023, allocations: 2.508 MB / 0.6814 GB, free: 114.5 MB / 426.7 MB Notification: Performance of SimCode: time 5.51e-07/1.023, allocations: 0 / 0.6814 GB, free: 114.5 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat