Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009668/0.0009671, allocations: 195.2 kB / 8.538 MB, free: 1.797 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.109/1.109, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008599/0.0008599, allocations: 93.55 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09245/0.09334, allocations: 56.9 MB / 343.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07992/0.1733, allocations: 51.48 MB / 394.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2214/0.3947, allocations: 107.7 MB / 0.4907 GB, free: 1.762 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001945/0.395, allocations: 82.27 kB / 0.4908 GB, free: 1.719 MB / 362.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.1427/0.5377, allocations: 60.43 MB / 0.5498 GB, free: 10.14 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.5377, allocations: 8 kB / 0.5498 GB, free: 10.13 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001192/0.5389, allocations: 411.5 kB / 0.5502 GB, free: 9.727 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003901/0.5428, allocations: 2.063 MB / 0.5522 GB, free: 7.609 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.482e-05/0.543, allocations: 92 kB / 0.5523 GB, free: 7.52 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003826/0.5433, allocations: 167.9 kB / 0.5524 GB, free: 7.355 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00465/0.548, allocations: 2.897 MB / 0.5553 GB, free: 4.453 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005108/0.5531, allocations: 3.389 MB / 0.5586 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.844e-05/0.5532, allocations: 7.906 kB / 0.5586 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002249/0.5534, allocations: 4 kB / 0.5586 GB, free: 0.8906 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001024/0.5535, allocations: 117.5 kB / 0.5587 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01687/0.5704, allocations: 11.29 MB / 0.5697 GB, free: 5.184 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00125/0.5717, allocations: 0.9986 MB / 0.5707 GB, free: 4.184 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/0.5734, allocations: 1.246 MB / 0.5719 GB, free: 2.945 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002816/0.5737, allocations: 138.4 kB / 0.572 GB, free: 2.789 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.205e-05/0.5737, allocations: 47.88 kB / 0.5721 GB, free: 2.734 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 3.136e-06/0.5737, allocations: 0 / 0.5721 GB, free: 2.734 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.1619/0.7357, allocations: 5.752 MB / 0.5777 GB, free: 65.29 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.158e-05/0.7357, allocations: 72.34 kB / 0.5778 GB, free: 65.22 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/0.7375, allocations: 1.527 MB / 0.5793 GB, free: 65.06 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.703e-05/0.7376, allocations: 25.7 kB / 0.5793 GB, free: 65.03 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003605/0.7379, allocations: 1.081 MB / 0.5803 GB, free: 64.56 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000255/0.7382, allocations: 0.5201 MB / 0.5809 GB, free: 64.28 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.593e-05/0.7383, allocations: 0 / 0.5809 GB, free: 64.28 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.7384, allocations: 377 kB / 0.5812 GB, free: 63.97 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001019/0.7394, allocations: 0.9014 MB / 0.5821 GB, free: 63.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001161/0.7406, allocations: 1.335 MB / 0.5834 GB, free: 63.48 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001206/0.7418, allocations: 1.13 MB / 0.5845 GB, free: 63.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.7418, allocations: 3.312 kB / 0.5845 GB, free: 63.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.004565/0.7464, allocations: 3.274 MB / 0.5877 GB, free: 63.18 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.7464, allocations: 6.562 kB / 0.5877 GB, free: 63.18 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.7465, allocations: 14.72 kB / 0.5877 GB, free: 63.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002441/0.7489, allocations: 1.062 MB / 0.5888 GB, free: 63.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.75, allocations: 318.8 kB / 0.5891 GB, free: 63.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01252/0.7625, allocations: 18.29 MB / 0.6069 GB, free: 50.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.764, allocations: 44.22 kB / 0.607 GB, free: 50.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001585/0.7642, allocations: 78.22 kB / 0.607 GB, free: 50.78 MB / 442.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.0002989/0.7645, allocations: 149.3 kB / 0.6072 GB, free: 50.66 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002725/0.7648, allocations: 201.2 kB / 0.6074 GB, free: 50.56 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003883/0.7687, allocations: 2.756 MB / 0.6101 GB, free: 50.37 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.7687, allocations: 15.75 kB / 0.6101 GB, free: 50.37 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/0.7687, allocations: 6.375 kB / 0.6101 GB, free: 50.37 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.7687, allocations: 10.69 kB / 0.6101 GB, free: 50.37 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00744/0.7762, allocations: 5.415 MB / 0.6154 GB, free: 49.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.7762, allocations: 6.375 kB / 0.6154 GB, free: 49.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007094/0.7769, allocations: 173.7 kB / 0.6156 GB, free: 49.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002075/0.779, allocations: 0.9569 MB / 0.6165 GB, free: 49.76 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.527e-05/0.7791, allocations: 10.66 kB / 0.6165 GB, free: 49.76 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01142/0.7905, allocations: 16.77 MB / 0.6329 GB, free: 38.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.449e-06/0.7906, allocations: 2.469 kB / 0.6329 GB, free: 38.61 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005103/0.7957, allocations: 4.194 MB / 0.637 GB, free: 37.98 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006517/0.8022, allocations: 5.883 MB / 0.6427 GB, free: 35.53 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008606/0.8031, allocations: 478.1 kB / 0.6432 GB, free: 35.24 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003014/0.8034, allocations: 11.56 kB / 0.6432 GB, free: 35.24 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009811/0.8044, allocations: 79.67 kB / 0.6433 GB, free: 35.24 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001748/0.8046, allocations: 94.34 kB / 0.6434 GB, free: 35.22 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.8047, allocations: 46.05 kB / 0.6434 GB, free: 35.21 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001639/0.8063, allocations: 1.134 MB / 0.6445 GB, free: 34.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002892/0.8092, allocations: 0.6266 MB / 0.6451 GB, free: 34.74 MB / 442.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.000525/0.8098, allocations: 387.5 kB / 0.6455 GB, free: 34.63 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004072/0.8138, allocations: 3.337 MB / 0.6488 GB, free: 32.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.8139, allocations: 1.031 kB / 0.6488 GB, free: 32.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002641/0.8165, allocations: 2.103 MB / 0.6508 GB, free: 31.62 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002619/0.8191, allocations: 0.4976 MB / 0.6513 GB, free: 31.51 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007618/0.8268, allocations: 4.617 MB / 0.6558 GB, free: 29.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002143/0.8289, allocations: 2.446 MB / 0.6582 GB, free: 28.79 MB / 442.7 MB Notification: Performance of SimCode: time 7.11e-07/0.8289, allocations: 0 / 0.6582 GB, free: 28.79 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1)