Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",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.00131/0.00131, allocations: 179.8 kB / 8.477 MB, free: 1.883 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.042/1.042, allocations: 205.2 MB / 214.1 MB, free: 5.082 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.0008572/0.0008572, allocations: 93.92 kB / 262.1 MB, free: 5.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1581/0.159, allocations: 52.97 MB / 315.1 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06456/0.2235, allocations: 47.58 MB / 362.6 MB, free: 9.836 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2335/0.4571, allocations: 115.3 MB / 478 MB, free: 9.496 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.4573, allocations: 81.7 kB / 478.1 MB, free: 9.457 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.1047/0.562, allocations: 43.61 MB / 0.5094 GB, free: 5.344 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.5621, allocations: 8 kB / 0.5094 GB, free: 5.336 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008607/0.5629, allocations: 281.2 kB / 0.5097 GB, free: 5.059 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002144/0.5651, allocations: 1.177 MB / 0.5109 GB, free: 3.824 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.242e-05/0.5652, allocations: 56 kB / 0.5109 GB, free: 3.77 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001935/0.5654, allocations: 103.9 kB / 0.511 GB, free: 3.668 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001711/0.5671, allocations: 0.874 MB / 0.5119 GB, free: 2.793 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002104/0.5692, allocations: 1.275 MB / 0.5131 GB, free: 1.457 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.502e-05/0.5692, allocations: 7.984 kB / 0.5131 GB, free: 1.449 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.492e-05/0.5693, allocations: 4 kB / 0.5131 GB, free: 1.445 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-05/0.5694, allocations: 47.84 kB / 0.5132 GB, free: 1.398 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007633/0.577, allocations: 6.447 MB / 0.5195 GB, free: 10.65 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001042/0.5781, allocations: 459.8 kB / 0.5199 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003944/0.5785, allocations: 250.3 kB / 0.5201 GB, free: 9.949 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.224e-05/0.5785, allocations: 9.203 kB / 0.5202 GB, free: 9.938 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.5786, allocations: 43.05 kB / 0.5202 GB, free: 9.887 MB / 378.7 MB Notification: Performance of pre-optimization done (n=61): time 1.894e-06/0.5786, allocations: 0 / 0.5202 GB, free: 9.887 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.002114/0.5807, allocations: 1.438 MB / 0.5216 GB, free: 8.387 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.693e-05/0.5808, allocations: 85.77 kB / 0.5217 GB, free: 8.285 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001147/0.5819, allocations: 0.9137 MB / 0.5226 GB, free: 7.363 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.804e-05/0.582, allocations: 25.7 kB / 0.5226 GB, free: 7.332 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004039/0.5824, allocations: 0.7115 MB / 0.5233 GB, free: 6.609 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.5825, allocations: 232.6 kB / 0.5235 GB, free: 6.379 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.104e-05/0.5826, allocations: 0 / 0.5235 GB, free: 6.379 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.5827, allocations: 353.9 kB / 0.5239 GB, free: 6.027 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003733/0.5831, allocations: 222.6 kB / 0.5241 GB, free: 5.809 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005864/0.5837, allocations: 0.6155 MB / 0.5247 GB, free: 5.004 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005136/0.5842, allocations: 327 kB / 0.525 GB, free: 4.688 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.5842, allocations: 7.938 kB / 0.525 GB, free: 4.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001379/0.5856, allocations: 0.9256 MB / 0.5259 GB, free: 3.742 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001729/0.5873, allocations: 5.32 MB / 0.5311 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.5874, allocations: 12 kB / 0.5311 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001416/0.5875, allocations: 44.84 kB / 0.5311 GB, free: 13.97 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009513/0.5885, allocations: 283.5 kB / 0.5314 GB, free: 13.69 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008852/0.5894, allocations: 1.24 MB / 0.5326 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007188/0.5901, allocations: 55.94 kB / 0.5327 GB, free: 12.28 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.779e-05/0.5902, allocations: 48 kB / 0.5327 GB, free: 12.23 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.41e-06/0.5902, allocations: 4 kB / 0.5327 GB, free: 12.23 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001145/0.5913, allocations: 0.7419 MB / 0.5334 GB, free: 11.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.5914, allocations: 12 kB / 0.5335 GB, free: 11.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.828e-05/0.5914, allocations: 52.94 kB / 0.5335 GB, free: 11.42 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008205/0.5923, allocations: 251.6 kB / 0.5337 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007613/0.5931, allocations: 1.248 MB / 0.535 GB, free: 9.805 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005708/0.5936, allocations: 28.14 kB / 0.535 GB, free: 9.777 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.449e-05/0.5937, allocations: 55.94 kB / 0.535 GB, free: 9.723 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: 3 (speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (140): * Single equations (assignments): 139 * 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.0001598/0.5939, allocations: 151.8 kB / 0.5352 GB, free: 9.57 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.594, allocations: 122.5 kB / 0.5353 GB, free: 9.449 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009094/0.5949, allocations: 0.5449 MB / 0.5358 GB, free: 8.898 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.595, allocations: 8 kB / 0.5358 GB, free: 8.891 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.595, allocations: 0 / 0.5358 GB, free: 8.891 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.595, allocations: 3.984 kB / 0.5359 GB, free: 8.887 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002535/0.5975, allocations: 1.752 MB / 0.5376 GB, free: 7.066 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.5975, allocations: 4 kB / 0.5376 GB, free: 7.062 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006554/0.5982, allocations: 144.1 kB / 0.5377 GB, free: 6.922 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.071e-05/0.5983, allocations: 32.78 kB / 0.5377 GB, free: 6.887 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.801e-05/0.5983, allocations: 8 kB / 0.5377 GB, free: 6.879 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007691/0.5991, allocations: 1.225 MB / 0.5389 GB, free: 5.543 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.5991, allocations: 0 / 0.5389 GB, free: 5.543 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001177/0.6003, allocations: 1.004 MB / 0.5399 GB, free: 4.465 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001605/0.6019, allocations: 1.639 MB / 0.5415 GB, free: 2.754 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003224/0.6023, allocations: 255.4 kB / 0.5418 GB, free: 2.484 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001551/0.6024, allocations: 11.98 kB / 0.5418 GB, free: 2.473 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005811/0.603, allocations: 55.91 kB / 0.5418 GB, free: 2.418 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.53e-05/0.6031, allocations: 40.44 kB / 0.5419 GB, free: 2.379 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.72e-05/0.6031, allocations: 16 kB / 0.5419 GB, free: 2.363 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0008366/0.604, allocations: 0.6715 MB / 0.5425 GB, free: 1.688 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002486/0.6065, allocations: 496 kB / 0.543 GB, free: 1.203 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 13 (loadInertia.phi,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,speedController.integrator.y,preFilter.y,slewRateLimiter.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 62 * 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.0004749/0.607, allocations: 364 kB / 0.5434 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001669/0.6086, allocations: 1.266 MB / 0.5446 GB, free: 15.55 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.6087, allocations: 0 / 0.5446 GB, free: 15.55 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004451/0.6091, allocations: 351.6 kB / 0.5449 GB, free: 15.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.6102, allocations: 256.6 kB / 0.5452 GB, free: 14.95 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003663/0.6139, allocations: 2.101 MB / 0.5472 GB, free: 12.78 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001022/0.6149, allocations: 1.386 MB / 0.5486 GB, free: 11.36 MB / 410.7 MB Notification: Performance of SimCode: time 3.11e-07/0.6149, allocations: 0 / 0.5486 GB, free: 11.36 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat