Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",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 3.2.3+maint.om/package.mo): time 0.0009476/0.0009478, allocations: 179.1 kB / 8.474 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.072/1.072, allocations: 205.2 MB / 214.1 MB, free: 5.496 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008383/0.0008383, allocations: 90.19 kB / 262.1 MB, free: 5.555 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1526/0.1535, allocations: 52.97 MB / 315.1 MB, free: 41.37 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06441/0.2179, allocations: 47.58 MB / 362.6 MB, free: 9.836 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2307/0.4486, allocations: 114.6 MB / 477.2 MB, free: 10.22 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002116/0.4489, allocations: 85.02 kB / 477.3 MB, free: 10.18 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.09738/0.5463, allocations: 40.22 MB / 0.5054 GB, free: 9.477 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.5463, allocations: 12 kB / 0.5054 GB, free: 9.465 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008804/0.5472, allocations: 249.6 kB / 0.5056 GB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002126/0.5494, allocations: 1.074 MB / 0.5067 GB, free: 8.094 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.938e-05/0.5494, allocations: 44 kB / 0.5067 GB, free: 8.051 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002238/0.5497, allocations: 95.89 kB / 0.5068 GB, free: 7.957 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001634/0.5513, allocations: 0.7948 MB / 0.5076 GB, free: 7.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002108/0.5534, allocations: 1.152 MB / 0.5087 GB, free: 5.953 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.706e-05/0.5535, allocations: 7.906 kB / 0.5087 GB, free: 5.945 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.5536, allocations: 0 / 0.5087 GB, free: 5.945 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.367e-05/0.5536, allocations: 36.22 kB / 0.5088 GB, free: 5.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007528/0.5612, allocations: 5.939 MB / 0.5146 GB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007306/0.5619, allocations: 323.6 kB / 0.5149 GB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003354/0.5623, allocations: 198.2 kB / 0.5151 GB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.004e-05/0.5623, allocations: 4.438 kB / 0.5151 GB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.5623, allocations: 46.98 kB / 0.5151 GB, free: 15.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 3.587e-06/0.5624, allocations: 0 / 0.5151 GB, free: 15.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.002047/0.5644, allocations: 1.265 MB / 0.5163 GB, free: 13.78 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.067e-05/0.5645, allocations: 85.48 kB / 0.5164 GB, free: 13.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001172/0.5656, allocations: 0.809 MB / 0.5172 GB, free: 12.85 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.543e-05/0.5657, allocations: 25.7 kB / 0.5172 GB, free: 12.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003643/0.5661, allocations: 0.6644 MB / 0.5179 GB, free: 12.14 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.5662, allocations: 205.1 kB / 0.5181 GB, free: 11.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.854e-05/0.5663, allocations: 0 / 0.5181 GB, free: 11.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.5664, allocations: 345.9 kB / 0.5184 GB, free: 11.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003289/0.5667, allocations: 186 kB / 0.5186 GB, free: 11.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005433/0.5673, allocations: 0.5685 MB / 0.5191 GB, free: 10.67 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004631/0.5677, allocations: 294.9 kB / 0.5194 GB, free: 10.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.5678, allocations: 4 kB / 0.5194 GB, free: 10.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001313/0.5691, allocations: 0.8204 MB / 0.5202 GB, free: 9.543 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001872/0.571, allocations: 5.119 MB / 0.5252 GB, free: 4.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.042e-05/0.571, allocations: 16 kB / 0.5252 GB, free: 4.004 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001555/0.5712, allocations: 40.84 kB / 0.5253 GB, free: 3.961 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008125/0.572, allocations: 239.6 kB / 0.5255 GB, free: 3.727 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009331/0.5729, allocations: 1.24 MB / 0.5267 GB, free: 2.367 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007273/0.5737, allocations: 31.89 kB / 0.5268 GB, free: 2.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-05/0.5737, allocations: 44 kB / 0.5268 GB, free: 2.293 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.53e-06/0.5737, allocations: 4 kB / 0.5268 GB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001033/0.5748, allocations: 0.6635 MB / 0.5274 GB, free: 1.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/0.5748, allocations: 12.05 kB / 0.5275 GB, free: 1.613 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.76e-05/0.5749, allocations: 40.84 kB / 0.5275 GB, free: 1.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007055/0.5756, allocations: 224 kB / 0.5277 GB, free: 1.352 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008315/0.5765, allocations: 1.241 MB / 0.5289 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006132/0.5771, allocations: 28.03 kB / 0.5289 GB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.506e-05/0.5771, allocations: 44 kB / 0.529 GB, free: 15.93 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0001723/0.5773, allocations: 148.4 kB / 0.5291 GB, free: 15.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000142/0.5775, allocations: 106.7 kB / 0.5292 GB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009058/0.5784, allocations: 474.8 kB / 0.5297 GB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.5784, allocations: 15.91 kB / 0.5297 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.5784, allocations: 0 / 0.5297 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.5784, allocations: 3.984 kB / 0.5297 GB, free: 15.17 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002257/0.5807, allocations: 1.547 MB / 0.5312 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.5807, allocations: 4 kB / 0.5312 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005429/0.5813, allocations: 112.1 kB / 0.5313 GB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.492e-05/0.5814, allocations: 28.75 kB / 0.5314 GB, free: 13.41 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.414e-05/0.5814, allocations: 8 kB / 0.5314 GB, free: 13.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008332/0.5822, allocations: 1.224 MB / 0.5326 GB, free: 12.06 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.5823, allocations: 7.938 kB / 0.5326 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001035/0.5833, allocations: 0.8773 MB / 0.5334 GB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001462/0.5848, allocations: 1.455 MB / 0.5348 GB, free: 9.566 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003395/0.5851, allocations: 231.7 kB / 0.5351 GB, free: 9.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.5853, allocations: 8 kB / 0.5351 GB, free: 9.312 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005383/0.5858, allocations: 35.88 kB / 0.5351 GB, free: 9.277 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.624e-05/0.5859, allocations: 36.39 kB / 0.5351 GB, free: 9.242 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.118e-05/0.5859, allocations: 16 kB / 0.5352 GB, free: 9.227 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0008123/0.5868, allocations: 0.5937 MB / 0.5357 GB, free: 8.625 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00255/0.5893, allocations: 471.9 kB / 0.5362 GB, free: 8.164 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.0004486/0.5898, allocations: 371.6 kB / 0.5365 GB, free: 7.789 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.5914, allocations: 1.111 MB / 0.5376 GB, free: 6.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5914, allocations: 0 / 0.5376 GB, free: 6.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003807/0.5918, allocations: 316.2 kB / 0.5379 GB, free: 6.344 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009667/0.5928, allocations: 232.4 kB / 0.5381 GB, free: 6.121 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003447/0.5962, allocations: 1.851 MB / 0.54 GB, free: 4.203 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001004/0.5972, allocations: 1.306 MB / 0.5412 GB, free: 2.863 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5973, allocations: 0 / 0.5412 GB, free: 2.863 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat