Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",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.001018/0.001018, allocations: 181.2 kB / 8.132 MB, free: 2.219 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.107/1.107, allocations: 221.4 MB / 229.9 MB, free: 3.012 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.0009865/0.0009865, allocations: 96.91 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09038/0.0914, allocations: 55.83 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1781/0.2695, allocations: 50.39 MB / 387 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1011/0.3706, allocations: 106.9 MB / 493.9 MB, free: 11.89 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.3709, allocations: 87.89 kB / 494 MB, free: 11.8 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.2727/0.6437, allocations: 60.34 MB / 0.5414 GB, free: 44.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.6437, allocations: 7.781 kB / 0.5414 GB, free: 44.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001635/0.6453, allocations: 411.8 kB / 0.5418 GB, free: 44.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004102/0.6495, allocations: 2.064 MB / 0.5438 GB, free: 43.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.227e-05/0.6496, allocations: 88.72 kB / 0.5439 GB, free: 43.33 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006516/0.6502, allocations: 170.2 kB / 0.544 GB, free: 43.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004864/0.6551, allocations: 2.896 MB / 0.5468 GB, free: 43.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005633/0.6608, allocations: 3.39 MB / 0.5502 GB, free: 42.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.9e-05/0.6609, allocations: 7.891 kB / 0.5502 GB, free: 42.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003062/0.6612, allocations: 7.812 kB / 0.5502 GB, free: 42.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.137e-05/0.6613, allocations: 113.6 kB / 0.5503 GB, free: 42.04 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01572/0.677, allocations: 11.29 MB / 0.5613 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.6781, allocations: 0.9977 MB / 0.5623 GB, free: 32.92 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001456/0.6796, allocations: 1.245 MB / 0.5635 GB, free: 31.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002783/0.6799, allocations: 138.4 kB / 0.5636 GB, free: 31.52 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.6799, allocations: 47.88 kB / 0.5637 GB, free: 31.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 3.396e-06/0.68, allocations: 0 / 0.5637 GB, free: 31.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=160): time 0.00997/0.6899, allocations: 5.769 MB / 0.5693 GB, free: 25.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.361e-05/0.69, allocations: 68.66 kB / 0.5694 GB, free: 25.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002301/0.6923, allocations: 1.527 MB / 0.5709 GB, free: 24.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001653/0.6925, allocations: 29.7 kB / 0.5709 GB, free: 24 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004013/0.6929, allocations: 1.071 MB / 0.5719 GB, free: 22.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000328/0.6932, allocations: 0.5274 MB / 0.5724 GB, free: 22.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.6933, allocations: 0 / 0.5724 GB, free: 22.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.6934, allocations: 377.9 kB / 0.5728 GB, free: 22.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001063/0.6945, allocations: 0.8941 MB / 0.5737 GB, free: 21.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.6957, allocations: 1.34 MB / 0.575 GB, free: 19.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001279/0.697, allocations: 1.134 MB / 0.5761 GB, free: 18.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.697, allocations: 4 kB / 0.5761 GB, free: 18.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.004775/0.7018, allocations: 3.269 MB / 0.5793 GB, free: 15.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.7018, allocations: 4 kB / 0.5793 GB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.092e-05/0.7019, allocations: 16 kB / 0.5793 GB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002478/0.7044, allocations: 1.059 MB / 0.5803 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001135/0.7055, allocations: 323.5 kB / 0.5807 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01408/0.7196, allocations: 18.29 MB / 0.5985 GB, free: 10.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.7213, allocations: 51.86 kB / 0.5986 GB, free: 10.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001873/0.7215, allocations: 75.98 kB / 0.5986 GB, free: 10.18 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 173 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003382/0.7218, allocations: 152.5 kB / 0.5988 GB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003182/0.7222, allocations: 201.6 kB / 0.599 GB, free: 9.824 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00464/0.7268, allocations: 2.75 MB / 0.6017 GB, free: 7.047 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.591e-05/0.7268, allocations: 16 kB / 0.6017 GB, free: 7.031 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/0.7269, allocations: 8 kB / 0.6017 GB, free: 7.023 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.659e-05/0.7269, allocations: 7.969 kB / 0.6017 GB, free: 7.016 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009726/0.7366, allocations: 5.423 MB / 0.607 GB, free: 1.52 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.7367, allocations: 4 kB / 0.607 GB, free: 1.516 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008029/0.7375, allocations: 176 kB / 0.6072 GB, free: 1.344 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002498/0.74, allocations: 0.9562 MB / 0.6081 GB, free: 368 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.7401, allocations: 19.89 kB / 0.6081 GB, free: 348 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01482/0.7549, allocations: 16.75 MB / 0.6245 GB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.755, allocations: 11.88 kB / 0.6245 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006023/0.761, allocations: 4.201 MB / 0.6286 GB, free: 10.24 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007334/0.7684, allocations: 5.878 MB / 0.6343 GB, free: 4.246 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001111/0.7695, allocations: 474.5 kB / 0.6348 GB, free: 3.762 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003506/0.7699, allocations: 7.984 kB / 0.6348 GB, free: 3.754 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.771, allocations: 83.92 kB / 0.6349 GB, free: 3.672 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/0.7712, allocations: 89.2 kB / 0.6349 GB, free: 3.586 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001117/0.7713, allocations: 48 kB / 0.635 GB, free: 3.539 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001698/0.773, allocations: 1.134 MB / 0.6361 GB, free: 2.414 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002996/0.776, allocations: 0.6327 MB / 0.6367 GB, free: 1.781 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 98 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005933/0.7766, allocations: 393.1 kB / 0.6371 GB, free: 1.422 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004726/0.7813, allocations: 3.331 MB / 0.6403 GB, free: 13.99 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.7814, allocations: 4 kB / 0.6403 GB, free: 13.98 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00273/0.7841, allocations: 2.105 MB / 0.6424 GB, free: 11.79 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002836/0.787, allocations: 0.4966 MB / 0.6429 GB, free: 11.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008336/0.7953, allocations: 4.61 MB / 0.6474 GB, free: 6.605 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002315/0.7977, allocations: 2.443 MB / 0.6498 GB, free: 4.133 MB / 442.7 MB Notification: Performance of SimCode: time 9.62e-07/0.7977, allocations: 0 / 0.6498 GB, free: 4.133 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1)