Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001511/0.001511, allocations: 194.9 kB / 8.538 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.124/1.124, allocations: 225.5 MB / 234.4 MB, free: 3.355 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008439/0.0008439, allocations: 92.95 kB / 286.3 MB, free: 5.223 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0923/0.09317, allocations: 56.91 MB / 343.2 MB, free: 8.648 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07903/0.1722, allocations: 51.48 MB / 394.7 MB, free: 5.105 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2192/0.3915, allocations: 110.5 MB / 0.4933 GB, free: 15.28 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/0.3917, allocations: 94.69 kB / 0.4934 GB, free: 15.23 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.1375/0.5292, allocations: 57.19 MB / 0.5493 GB, free: 10.79 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.144e-05/0.5293, allocations: 8 kB / 0.5493 GB, free: 10.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009318/0.5302, allocations: 360 kB / 0.5496 GB, free: 10.42 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003327/0.5336, allocations: 1.956 MB / 0.5515 GB, free: 8.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-05/0.5337, allocations: 80 kB / 0.5516 GB, free: 8.328 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003095/0.534, allocations: 147.9 kB / 0.5518 GB, free: 8.184 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003947/0.5379, allocations: 2.599 MB / 0.5543 GB, free: 5.578 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004375/0.5423, allocations: 3.007 MB / 0.5572 GB, free: 2.402 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.306e-05/0.5424, allocations: 11.84 kB / 0.5573 GB, free: 2.391 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002062/0.5426, allocations: 4 kB / 0.5573 GB, free: 2.387 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.926e-05/0.5427, allocations: 120.8 kB / 0.5574 GB, free: 2.266 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.014/0.5567, allocations: 10.46 MB / 0.5676 GB, free: 7.539 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.5581, allocations: 1.041 MB / 0.5686 GB, free: 6.488 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001399/0.5595, allocations: 1.101 MB / 0.5697 GB, free: 5.387 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002694/0.5598, allocations: 134.4 kB / 0.5698 GB, free: 5.238 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.322e-05/0.5598, allocations: 51.88 kB / 0.5699 GB, free: 5.176 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 3.006e-06/0.5599, allocations: 4 kB / 0.5699 GB, free: 5.172 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.008377/0.5682, allocations: 5.033 MB / 0.5748 GB, free: 92 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1058/0.6741, allocations: 90.42 kB / 0.5749 GB, free: 137.5 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001646/0.6758, allocations: 1.337 MB / 0.5762 GB, free: 137.4 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002275/0.676, allocations: 25.7 kB / 0.5762 GB, free: 137.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003081/0.6763, allocations: 0.9597 MB / 0.5771 GB, free: 137.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002718/0.6766, allocations: 492.3 kB / 0.5776 GB, free: 137 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.869e-05/0.6767, allocations: 0 / 0.5776 GB, free: 137 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.992e-05/0.6768, allocations: 374.4 kB / 0.578 GB, free: 136.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009621/0.6777, allocations: 0.8191 MB / 0.5788 GB, free: 136.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001055/0.6788, allocations: 1.263 MB / 0.58 GB, free: 136.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.68, allocations: 1.008 MB / 0.581 GB, free: 136.2 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.68, allocations: 3.844 kB / 0.581 GB, free: 136.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003419/0.6834, allocations: 2.674 MB / 0.5836 GB, free: 136 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006517/0.6841, allocations: 5.532 MB / 0.589 GB, free: 130.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.6841, allocations: 14.16 kB / 0.589 GB, free: 130.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001353/0.6854, allocations: 0.6606 MB / 0.5896 GB, free: 130.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.6868, allocations: 367 kB / 0.59 GB, free: 130.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006072/0.6929, allocations: 7.511 MB / 0.5973 GB, free: 126.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.6941, allocations: 65.91 kB / 0.5974 GB, free: 126.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001396/0.6943, allocations: 69.5 kB / 0.5975 GB, free: 126.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.16e-06/0.6943, allocations: 3.375 kB / 0.5975 GB, free: 126.4 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003178/0.6975, allocations: 2.458 MB / 0.5999 GB, free: 126.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.6975, allocations: 11.69 kB / 0.5999 GB, free: 126.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001256/0.6988, allocations: 0.6726 MB / 0.6005 GB, free: 126.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/0.7, allocations: 360.5 kB / 0.6009 GB, free: 126.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00596/0.706, allocations: 7.52 MB / 0.6082 GB, free: 122.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/0.7072, allocations: 48.19 kB / 0.6083 GB, free: 122.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/0.7073, allocations: 75.97 kB / 0.6083 GB, free: 122.6 MB / 442.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.0002908/0.7076, allocations: 155.9 kB / 0.6085 GB, free: 122.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002557/0.7079, allocations: 188.6 kB / 0.6087 GB, free: 122.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003499/0.7114, allocations: 2.475 MB / 0.6111 GB, free: 122.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.758e-06/0.7114, allocations: 14.94 kB / 0.6111 GB, free: 122.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.7114, allocations: 0 / 0.6111 GB, free: 122.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.284e-05/0.7114, allocations: 6.703 kB / 0.6111 GB, free: 122.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006606/0.7181, allocations: 4.907 MB / 0.6159 GB, free: 121.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.7181, allocations: 3.469 kB / 0.6159 GB, free: 121.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009968/0.7191, allocations: 224.7 kB / 0.6161 GB, free: 121.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001433/0.7205, allocations: 0.6944 MB / 0.6168 GB, free: 121.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.7206, allocations: 14.92 kB / 0.6168 GB, free: 121.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006947/0.7276, allocations: 8.963 MB / 0.6256 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.7276, allocations: 1.969 kB / 0.6256 GB, free: 115 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004307/0.7319, allocations: 3.858 MB / 0.6293 GB, free: 113.3 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005287/0.7372, allocations: 5.521 MB / 0.6347 GB, free: 110.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007439/0.738, allocations: 451.7 kB / 0.6352 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000282/0.7383, allocations: 15.53 kB / 0.6352 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009247/0.7392, allocations: 61.77 kB / 0.6352 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001708/0.7394, allocations: 80.56 kB / 0.6353 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.7395, allocations: 41.27 kB / 0.6353 GB, free: 110.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001177/0.7407, allocations: 1.003 MB / 0.6363 GB, free: 109.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003961/0.7447, allocations: 0.9466 MB / 0.6372 GB, free: 109.9 MB / 442.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.0005267/0.7452, allocations: 404.2 kB / 0.6376 GB, free: 109.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004919/0.7501, allocations: 4.189 MB / 0.6417 GB, free: 107.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.7501, allocations: 0 / 0.6417 GB, free: 107.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001774/0.7519, allocations: 1.563 MB / 0.6432 GB, free: 107 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001941/0.7539, allocations: 475.4 kB / 0.6437 GB, free: 106.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007495/0.7614, allocations: 4.502 MB / 0.6481 GB, free: 105.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001782/0.7632, allocations: 2.254 MB / 0.6503 GB, free: 104.2 MB / 442.7 MB Notification: Performance of SimCode: time 5.41e-07/0.7632, allocations: 0 / 0.6503 GB, free: 104.2 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1)