Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",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.001353/0.001353, allocations: 195.4 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.111/1.111, allocations: 225.5 MB / 234.4 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000995/0.000995, allocations: 104.5 kB / 286.4 MB, free: 12.66 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09607/0.09709, allocations: 56.88 MB / 343.2 MB, free: 3.781 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.2789, allocations: 51.46 MB / 394.7 MB, free: 33.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09974/0.3787, allocations: 99.36 MB / 494.1 MB, free: 13.7 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002159/0.379, allocations: 83.95 kB / 494.1 MB, free: 13.62 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.1893/0.5683, allocations: 28.27 MB / 0.5102 GB, free: 92.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.5683, allocations: 7.844 kB / 0.5102 GB, free: 92.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006834/0.569, allocations: 197.8 kB / 0.5104 GB, free: 92.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001446/0.5705, allocations: 0.8444 MB / 0.5112 GB, free: 92.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/0.5705, allocations: 35.25 kB / 0.5112 GB, free: 92.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.5706, allocations: 62.22 kB / 0.5113 GB, free: 92.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009116/0.5716, allocations: 0.5267 MB / 0.5118 GB, free: 92.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.5727, allocations: 0.7645 MB / 0.5125 GB, free: 91.66 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.296e-05/0.5727, allocations: 3.969 kB / 0.5125 GB, free: 91.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.024e-05/0.5728, allocations: 3.906 kB / 0.5125 GB, free: 91.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.679e-05/0.5728, allocations: 23.59 kB / 0.5126 GB, free: 91.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004883/0.5777, allocations: 3.971 MB / 0.5164 GB, free: 88.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005977/0.5783, allocations: 238.2 kB / 0.5167 GB, free: 88.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.5785, allocations: 135.8 kB / 0.5168 GB, free: 88.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.882e-05/0.5786, allocations: 4.188 kB / 0.5168 GB, free: 88.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.775e-05/0.5786, allocations: 41.33 kB / 0.5168 GB, free: 88.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.475e-06/0.5786, allocations: 0 / 0.5168 GB, free: 88.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001661/0.5803, allocations: 0.9873 MB / 0.5178 GB, free: 88.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.351e-05/0.5803, allocations: 81.11 kB / 0.5179 GB, free: 87.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006898/0.581, allocations: 0.6317 MB / 0.5185 GB, free: 87.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.5811, allocations: 26.45 kB / 0.5185 GB, free: 87.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000181/0.5812, allocations: 490.4 kB / 0.519 GB, free: 86.95 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.503e-05/0.5813, allocations: 140.8 kB / 0.5191 GB, free: 86.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.935e-05/0.5813, allocations: 0 / 0.5191 GB, free: 86.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.617e-05/0.5814, allocations: 331 kB / 0.5194 GB, free: 86.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.5816, allocations: 137.6 kB / 0.5196 GB, free: 86.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002889/0.5819, allocations: 437.5 kB / 0.52 GB, free: 85.8 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000276/0.5822, allocations: 216.5 kB / 0.5202 GB, free: 85.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.5822, allocations: 5.406 kB / 0.5202 GB, free: 85.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0008072/0.583, allocations: 0.613 MB / 0.5208 GB, free: 85.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005013/0.5835, allocations: 4.083 MB / 0.5248 GB, free: 80.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.21e-05/0.5835, allocations: 17.22 kB / 0.5248 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001258/0.5837, allocations: 38.62 kB / 0.5248 GB, free: 80.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005749/0.5843, allocations: 172.8 kB / 0.525 GB, free: 80.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006359/0.5849, allocations: 1.23 MB / 0.5262 GB, free: 79.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004977/0.5854, allocations: 22.59 kB / 0.5262 GB, free: 79.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.01e-05/0.5855, allocations: 44.73 kB / 0.5263 GB, free: 79.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.06e-06/0.5855, allocations: 4 kB / 0.5263 GB, free: 79.05 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006758/0.5862, allocations: 495.2 kB / 0.5267 GB, free: 78.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.5862, allocations: 8.562 kB / 0.5268 GB, free: 78.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.561e-05/0.5862, allocations: 43.53 kB / 0.5268 GB, free: 78.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005142/0.5868, allocations: 171.7 kB / 0.527 GB, free: 78.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005372/0.5873, allocations: 1.235 MB / 0.5282 GB, free: 77.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004309/0.5878, allocations: 21.25 kB / 0.5282 GB, free: 77.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/0.5878, allocations: 40.7 kB / 0.5282 GB, free: 77.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001127/0.5879, allocations: 129.5 kB / 0.5284 GB, free: 76.89 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.588, allocations: 94.86 kB / 0.5284 GB, free: 76.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006218/0.5887, allocations: 357.6 kB / 0.5288 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.5887, allocations: 4.562 kB / 0.5288 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.5887, allocations: 0 / 0.5288 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.5887, allocations: 2.203 kB / 0.5288 GB, free: 76.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001447/0.5902, allocations: 1.155 MB / 0.5299 GB, free: 75.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-06/0.5902, allocations: 3.906 kB / 0.5299 GB, free: 75.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003531/0.5905, allocations: 75.84 kB / 0.53 GB, free: 75.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.062e-05/0.5906, allocations: 29.06 kB / 0.53 GB, free: 75.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.5906, allocations: 4 kB / 0.53 GB, free: 75.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005375/0.5912, allocations: 1.217 MB / 0.5312 GB, free: 73.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.5912, allocations: 4 kB / 0.5312 GB, free: 73.83 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006473/0.5919, allocations: 0.7124 MB / 0.5319 GB, free: 73.03 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000821/0.5927, allocations: 1.226 MB / 0.5331 GB, free: 71.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001904/0.5929, allocations: 195.9 kB / 0.5333 GB, free: 71.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001063/0.593, allocations: 3.984 kB / 0.5333 GB, free: 71.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003927/0.5934, allocations: 12 kB / 0.5333 GB, free: 71.49 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.408e-05/0.5935, allocations: 19.97 kB / 0.5333 GB, free: 71.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.235e-05/0.5935, allocations: 15.98 kB / 0.5333 GB, free: 71.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004722/0.594, allocations: 483.2 kB / 0.5338 GB, free: 70.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002354/0.5963, allocations: 347.8 kB / 0.5341 GB, free: 70.65 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003084/0.5967, allocations: 272.7 kB / 0.5344 GB, free: 70.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.5978, allocations: 0.877 MB / 0.5353 GB, free: 69.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.5978, allocations: 0 / 0.5353 GB, free: 69.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002505/0.598, allocations: 254.6 kB / 0.5355 GB, free: 69.24 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008618/0.5989, allocations: 187.7 kB / 0.5357 GB, free: 69.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002316/0.6012, allocations: 1.34 MB / 0.537 GB, free: 67.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000516/0.6018, allocations: 1.117 MB / 0.5381 GB, free: 66.53 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.6018, allocations: 0 / 0.5381 GB, free: 66.53 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat