Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.PositionControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",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.000958/0.000958, allocations: 178.6 kB / 8.474 MB, free: 1.871 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.041/1.041, allocations: 205.2 MB / 214.1 MB, free: 1.895 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.0008733/0.0008733, allocations: 75.41 kB / 262.1 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1303/0.1312, allocations: 52.98 MB / 315.1 MB, free: 22.96 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06671/0.1979, allocations: 47.59 MB / 362.6 MB, free: 7.316 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2283/0.4263, allocations: 116.8 MB / 479.4 MB, free: 11.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001988/0.4265, allocations: 78.7 kB / 479.5 MB, free: 11.05 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.1186/0.5452, allocations: 48.25 MB / 0.5154 GB, free: 0.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.5452, allocations: 8 kB / 0.5154 GB, free: 0.4922 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000972/0.5462, allocations: 301 kB / 0.5157 GB, free: 200 kB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002542/0.5487, allocations: 1.272 MB / 0.5169 GB, free: 14.87 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002682/0.549, allocations: 200.8 kB / 0.5171 GB, free: 14.65 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000277/0.5493, allocations: 115.9 kB / 0.5172 GB, free: 14.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00255/0.5519, allocations: 1.265 MB / 0.5185 GB, free: 13.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00263/0.5545, allocations: 1.508 MB / 0.5199 GB, free: 11.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.293e-05/0.5546, allocations: 4 kB / 0.5199 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.5547, allocations: 3.984 kB / 0.5199 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.469e-05/0.5548, allocations: 44 kB / 0.52 GB, free: 11.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009581/0.5643, allocations: 7.13 MB / 0.5269 GB, free: 4.223 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00128/0.5657, allocations: 0.567 MB / 0.5275 GB, free: 3.648 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005879/0.5663, allocations: 375.7 kB / 0.5279 GB, free: 3.281 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.461e-05/0.5663, allocations: 20.75 kB / 0.5279 GB, free: 3.262 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.5664, allocations: 47.25 kB / 0.5279 GB, free: 3.207 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 2.845e-06/0.5664, allocations: 0 / 0.5279 GB, free: 3.207 MB / 410.7 MB Notification: Performance of matching and sorting (n=111): time 0.1339/0.7003, allocations: 4.411 MB / 0.5322 GB, free: 87.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.719e-05/0.7003, allocations: 95.03 kB / 0.5323 GB, free: 87.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001238/0.7016, allocations: 1.014 MB / 0.5333 GB, free: 87.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.406e-05/0.7017, allocations: 25.7 kB / 0.5333 GB, free: 87.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000249/0.7019, allocations: 0.7807 MB / 0.5341 GB, free: 86.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/0.7021, allocations: 378.4 kB / 0.5345 GB, free: 86.66 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.363e-05/0.7022, allocations: 0 / 0.5345 GB, free: 86.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.502e-05/0.7023, allocations: 362.2 kB / 0.5348 GB, free: 86.35 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007279/0.703, allocations: 0.5212 MB / 0.5353 GB, free: 86.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008338/0.7038, allocations: 0.946 MB / 0.5362 GB, free: 85.85 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007279/0.7046, allocations: 0.5592 MB / 0.5368 GB, free: 85.83 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.55e-06/0.7046, allocations: 3.906 kB / 0.5368 GB, free: 85.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002107/0.7067, allocations: 1.535 MB / 0.5383 GB, free: 85.69 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007177/0.7074, allocations: 5.354 MB / 0.5435 GB, free: 80.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/0.7075, allocations: 13.28 kB / 0.5435 GB, free: 80.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001612/0.7076, allocations: 46.47 kB / 0.5436 GB, free: 80.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001803/0.7094, allocations: 453.2 kB / 0.544 GB, free: 80.15 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007162/0.7102, allocations: 1.251 MB / 0.5452 GB, free: 78.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/0.7117, allocations: 149.8 kB / 0.5454 GB, free: 78.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.7119, allocations: 61.88 kB / 0.5454 GB, free: 78.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.1e-06/0.7119, allocations: 5.75 kB / 0.5454 GB, free: 78.96 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001889/0.7138, allocations: 1.328 MB / 0.5467 GB, free: 78.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.7138, allocations: 13.78 kB / 0.5467 GB, free: 78.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.323e-05/0.7139, allocations: 48.25 kB / 0.5468 GB, free: 78.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/0.7155, allocations: 417.9 kB / 0.5472 GB, free: 78.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005917/0.7161, allocations: 1.242 MB / 0.5484 GB, free: 77.72 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001404/0.7175, allocations: 122.5 kB / 0.5485 GB, free: 77.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.7177, allocations: 62.36 kB / 0.5486 GB, free: 77.72 MB / 410.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: 6 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase,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 (194): * Single equations (assignments): 193 * 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.000285/0.718, allocations: 151 kB / 0.5487 GB, free: 77.61 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002282/0.7182, allocations: 157.2 kB / 0.5489 GB, free: 77.54 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001709/0.7199, allocations: 1.076 MB / 0.5499 GB, free: 77.45 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.7199, allocations: 10.59 kB / 0.5499 GB, free: 77.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.7199, allocations: 0 / 0.5499 GB, free: 77.45 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.72, allocations: 7.469 kB / 0.5499 GB, free: 77.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00506/0.725, allocations: 3.242 MB / 0.5531 GB, free: 76.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.7251, allocations: 10.59 kB / 0.5531 GB, free: 76.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/0.7262, allocations: 297.4 kB / 0.5534 GB, free: 76.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.325e-05/0.7263, allocations: 39.06 kB / 0.5534 GB, free: 76.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.614e-05/0.7264, allocations: 18.62 kB / 0.5535 GB, free: 76.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005812/0.727, allocations: 1.238 MB / 0.5547 GB, free: 75.58 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.158e-06/0.727, allocations: 18.64 kB / 0.5547 GB, free: 75.57 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002036/0.729, allocations: 2.257 MB / 0.5569 GB, free: 74.11 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00255/0.7316, allocations: 3.098 MB / 0.5599 GB, free: 72.26 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004765/0.7321, allocations: 326.9 kB / 0.5602 GB, free: 72.09 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002143/0.7323, allocations: 16.72 kB / 0.5602 GB, free: 72.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/0.7334, allocations: 141.7 kB / 0.5604 GB, free: 72.09 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001912/0.7336, allocations: 122 kB / 0.5605 GB, free: 72.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.601e-05/0.7337, allocations: 36.12 kB / 0.5605 GB, free: 72.07 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0008596/0.7346, allocations: 0.7453 MB / 0.5612 GB, free: 71.95 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002877/0.7374, allocations: 0.609 MB / 0.5618 GB, free: 71.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (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) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 109 * 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.0004154/0.7379, allocations: 380.2 kB / 0.5622 GB, free: 71.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002749/0.7406, allocations: 2.255 MB / 0.5644 GB, free: 71.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.7406, allocations: 0.9375 kB / 0.5644 GB, free: 71.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007093/0.7414, allocations: 0.5362 MB / 0.5649 GB, free: 71.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/0.7426, allocations: 285.5 kB / 0.5652 GB, free: 71.34 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004823/0.7474, allocations: 2.752 MB / 0.5679 GB, free: 70.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001195/0.7487, allocations: 1.53 MB / 0.5694 GB, free: 69.45 MB / 410.7 MB Notification: Performance of SimCode: time 6.12e-07/0.7487, allocations: 0 / 0.5694 GB, free: 69.45 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat