Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_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.0009919/0.0009919, allocations: 184 kB / 8.138 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.102/1.102, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.000903/0.000903, allocations: 104.1 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08947/0.09041, allocations: 55.82 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1719/0.2623, allocations: 50.4 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1047/0.367, allocations: 109.7 MB / 496.7 MB, free: 9.078 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002113/0.3673, allocations: 83.95 kB / 496.7 MB, free: 8.996 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: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.2555/0.6228, allocations: 57.09 MB / 0.5409 GB, free: 55.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.083e-05/0.6228, allocations: 16 kB / 0.5409 GB, free: 55.23 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.6238, allocations: 352 kB / 0.5412 GB, free: 54.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003351/0.6272, allocations: 1.956 MB / 0.5431 GB, free: 53.4 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.216e-05/0.6273, allocations: 80 kB / 0.5432 GB, free: 53.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003696/0.6277, allocations: 147.9 kB / 0.5433 GB, free: 53.18 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003897/0.6316, allocations: 2.6 MB / 0.5459 GB, free: 51.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004416/0.636, allocations: 2.997 MB / 0.5488 GB, free: 48.78 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-05/0.6361, allocations: 8 kB / 0.5488 GB, free: 48.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002289/0.6363, allocations: 15.83 kB / 0.5488 GB, free: 48.76 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.698e-05/0.6364, allocations: 116.8 kB / 0.5489 GB, free: 48.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0131/0.6495, allocations: 10.46 MB / 0.5592 GB, free: 38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/0.6507, allocations: 1.042 MB / 0.5602 GB, free: 36.95 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001216/0.652, allocations: 1.098 MB / 0.5612 GB, free: 35.86 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000248/0.6522, allocations: 141.3 kB / 0.5614 GB, free: 35.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.6523, allocations: 47.88 kB / 0.5614 GB, free: 35.64 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 3.436e-06/0.6523, allocations: 0 / 0.5614 GB, free: 35.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.007616/0.6599, allocations: 5.037 MB / 0.5663 GB, free: 30.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.66, allocations: 94.42 kB / 0.5664 GB, free: 30.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001736/0.6617, allocations: 1.346 MB / 0.5677 GB, free: 29.11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.542e-05/0.6618, allocations: 25.7 kB / 0.5678 GB, free: 29.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003744/0.6622, allocations: 0.9514 MB / 0.5687 GB, free: 28.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002845/0.6625, allocations: 492.6 kB / 0.5692 GB, free: 27.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.537e-05/0.6626, allocations: 0 / 0.5692 GB, free: 27.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.74e-05/0.6627, allocations: 377.9 kB / 0.5695 GB, free: 27.25 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009456/0.6636, allocations: 0.8122 MB / 0.5703 GB, free: 26.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001106/0.6647, allocations: 1.271 MB / 0.5716 GB, free: 24.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/0.666, allocations: 1.009 MB / 0.5725 GB, free: 23.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.176e-06/0.6661, allocations: 4 kB / 0.5726 GB, free: 23.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003708/0.6698, allocations: 2.67 MB / 0.5752 GB, free: 21.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007551/0.6705, allocations: 5.52 MB / 0.5805 GB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.113e-05/0.6706, allocations: 20 kB / 0.5806 GB, free: 15.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001369/0.6719, allocations: 0.6784 MB / 0.5812 GB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.6733, allocations: 363.4 kB / 0.5816 GB, free: 14.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006153/0.6795, allocations: 7.502 MB / 0.5889 GB, free: 6.301 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/0.6808, allocations: 67.81 kB / 0.589 GB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001572/0.681, allocations: 75.98 kB / 0.589 GB, free: 6.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.84e-06/0.681, allocations: 4 kB / 0.589 GB, free: 6.156 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00324/0.6842, allocations: 2.448 MB / 0.5914 GB, free: 3.699 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.237e-05/0.6842, allocations: 16 kB / 0.5915 GB, free: 3.684 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001267/0.6855, allocations: 0.6793 MB / 0.5921 GB, free: 2.992 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.6868, allocations: 359.4 kB / 0.5925 GB, free: 2.641 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00727/0.6941, allocations: 7.514 MB / 0.5998 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001446/0.6956, allocations: 47.94 kB / 0.5998 GB, free: 10.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002336/0.6958, allocations: 68 kB / 0.5999 GB, free: 10.67 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (183): * Single equations (assignments): 179 * 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 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.000404/0.6963, allocations: 164.4 kB / 0.6001 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004351/0.6967, allocations: 189.8 kB / 0.6002 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004206/0.7009, allocations: 2.471 MB / 0.6027 GB, free: 7.828 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.205e-05/0.7009, allocations: 12 kB / 0.6027 GB, free: 7.816 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.7009, allocations: 4 kB / 0.6027 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.009e-05/0.701, allocations: 7.969 kB / 0.6027 GB, free: 7.805 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008161/0.7091, allocations: 4.91 MB / 0.6075 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.7092, allocations: 0 / 0.6075 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001072/0.7102, allocations: 232 kB / 0.6077 GB, free: 2.605 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001634/0.7119, allocations: 0.6942 MB / 0.6084 GB, free: 1.898 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/0.712, allocations: 15.98 kB / 0.6084 GB, free: 1.883 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01038/0.7224, allocations: 8.968 MB / 0.6171 GB, free: 8.461 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/0.7224, allocations: 3.938 kB / 0.6171 GB, free: 8.457 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006229/0.7287, allocations: 3.855 MB / 0.6209 GB, free: 4.488 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007081/0.7358, allocations: 5.526 MB / 0.6263 GB, free: 14.86 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001058/0.7369, allocations: 450.7 kB / 0.6267 GB, free: 14.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002953/0.7372, allocations: 11.98 kB / 0.6268 GB, free: 14.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/0.7382, allocations: 59.84 kB / 0.6268 GB, free: 14.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/0.7384, allocations: 89.17 kB / 0.6269 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001075/0.7385, allocations: 47.98 kB / 0.6269 GB, free: 14.19 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001401/0.7399, allocations: 1.002 MB / 0.6279 GB, free: 13.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003878/0.7438, allocations: 0.9299 MB / 0.6288 GB, free: 12.27 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],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 (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005498/0.7444, allocations: 393.3 kB / 0.6292 GB, free: 11.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005259/0.7497, allocations: 4.187 MB / 0.6333 GB, free: 7.609 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.626e-06/0.7497, allocations: 3.938 kB / 0.6333 GB, free: 7.605 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/0.7516, allocations: 1.568 MB / 0.6348 GB, free: 5.996 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/0.7536, allocations: 468.5 kB / 0.6353 GB, free: 5.547 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008686/0.7623, allocations: 4.507 MB / 0.6397 GB, free: 0.9531 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002278/0.7646, allocations: 2.249 MB / 0.6419 GB, free: 14.67 MB / 442.7 MB Notification: Performance of SimCode: time 4.61e-07/0.7647, allocations: 0 / 0.6419 GB, free: 14.67 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1)