Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 183.9 kB / 8.134 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.126/1.126, allocations: 221.4 MB / 229.9 MB, free: 3 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009517/0.0009517, allocations: 100.4 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1012/0.1022, allocations: 55.82 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1869/0.2891, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1096/0.3986, allocations: 116.2 MB / 0.4914 GB, free: 2.504 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.3989, allocations: 83.95 kB / 0.4915 GB, free: 2.422 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: 417 * Number of variables: 417 Notification: Performance of Generate backend data structure: time 0.2257/0.6246, allocations: 43.78 MB / 0.5342 GB, free: 76.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.6247, allocations: 12.42 kB / 0.5342 GB, free: 76.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008381/0.6255, allocations: 273.3 kB / 0.5345 GB, free: 76.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001977/0.6275, allocations: 1.169 MB / 0.5356 GB, free: 75.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.423e-05/0.6276, allocations: 52 kB / 0.5357 GB, free: 75.24 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001875/0.6278, allocations: 103.9 kB / 0.5358 GB, free: 75.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001634/0.6294, allocations: 0.8813 MB / 0.5367 GB, free: 74.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002031/0.6314, allocations: 1.267 MB / 0.5379 GB, free: 72.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.33e-05/0.6315, allocations: 3.906 kB / 0.5379 GB, free: 72.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.486e-05/0.6316, allocations: 4 kB / 0.5379 GB, free: 72.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.608e-05/0.6316, allocations: 40 kB / 0.5379 GB, free: 72.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006695/0.6383, allocations: 6.434 MB / 0.5442 GB, free: 66.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009735/0.6393, allocations: 459 kB / 0.5447 GB, free: 65.74 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003446/0.6397, allocations: 250.4 kB / 0.5449 GB, free: 65.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.34e-05/0.6397, allocations: 12.48 kB / 0.5449 GB, free: 65.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.6398, allocations: 43.06 kB / 0.5449 GB, free: 65.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=61): time 2.074e-06/0.6398, allocations: 0 / 0.5449 GB, free: 65.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=64): time 0.001934/0.6417, allocations: 1.433 MB / 0.5463 GB, free: 63.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.389e-05/0.6418, allocations: 85.75 kB / 0.5464 GB, free: 63.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009947/0.6428, allocations: 0.9055 MB / 0.5473 GB, free: 62.92 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.505e-05/0.6428, allocations: 29.64 kB / 0.5473 GB, free: 62.89 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002215/0.643, allocations: 0.7113 MB / 0.548 GB, free: 62.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.6431, allocations: 232.7 kB / 0.5483 GB, free: 61.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.031e-05/0.6432, allocations: 0 / 0.5483 GB, free: 61.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.75e-05/0.6432, allocations: 353.9 kB / 0.5486 GB, free: 61.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003187/0.6436, allocations: 222.6 kB / 0.5488 GB, free: 61.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004315/0.644, allocations: 0.6233 MB / 0.5494 GB, free: 60.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004229/0.6444, allocations: 335.4 kB / 0.5497 GB, free: 60.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.6445, allocations: 4 kB / 0.5497 GB, free: 60.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001188/0.6456, allocations: 0.9174 MB / 0.5506 GB, free: 59.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007081/0.6464, allocations: 5.318 MB / 0.5558 GB, free: 53.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.6464, allocations: 16 kB / 0.5558 GB, free: 53.56 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/0.6465, allocations: 40.84 kB / 0.5559 GB, free: 53.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008893/0.6474, allocations: 279.6 kB / 0.5562 GB, free: 53.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006452/0.6481, allocations: 1.247 MB / 0.5574 GB, free: 51.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007632/0.6489, allocations: 56.03 kB / 0.5574 GB, free: 51.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.704e-05/0.6489, allocations: 52 kB / 0.5575 GB, free: 51.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.799e-06/0.6489, allocations: 7.125 kB / 0.5575 GB, free: 51.78 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009816/0.6499, allocations: 0.7334 MB / 0.5582 GB, free: 51.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.551e-05/0.65, allocations: 20 kB / 0.5582 GB, free: 51.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.546e-05/0.65, allocations: 41.59 kB / 0.5583 GB, free: 50.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007835/0.6508, allocations: 259.6 kB / 0.5585 GB, free: 50.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005189/0.6514, allocations: 1.252 MB / 0.5597 GB, free: 49.36 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006135/0.652, allocations: 32.14 kB / 0.5598 GB, free: 49.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-05/0.6521, allocations: 52 kB / 0.5598 GB, free: 49.27 MB / 378.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.0001318/0.6522, allocations: 148.4 kB / 0.5599 GB, free: 49.12 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001293/0.6523, allocations: 122.5 kB / 0.5601 GB, free: 49 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008305/0.6532, allocations: 0.537 MB / 0.5606 GB, free: 48.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.6532, allocations: 15.92 kB / 0.5606 GB, free: 48.44 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.6532, allocations: 7.906 kB / 0.5606 GB, free: 48.43 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.6532, allocations: 0 / 0.5606 GB, free: 48.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/0.6554, allocations: 1.744 MB / 0.5623 GB, free: 46.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.6554, allocations: 4 kB / 0.5623 GB, free: 46.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006287/0.6561, allocations: 152 kB / 0.5625 GB, free: 46.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.693e-05/0.6561, allocations: 24.78 kB / 0.5625 GB, free: 46.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.928e-05/0.6562, allocations: 12 kB / 0.5625 GB, free: 46.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005416/0.6567, allocations: 1.225 MB / 0.5637 GB, free: 45.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.6568, allocations: 0 / 0.5637 GB, free: 45.1 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009815/0.6577, allocations: 1.007 MB / 0.5647 GB, free: 44.03 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001292/0.659, allocations: 1.638 MB / 0.5663 GB, free: 42.31 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003171/0.6594, allocations: 255.5 kB / 0.5665 GB, free: 42.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.6595, allocations: 4 kB / 0.5665 GB, free: 42.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005857/0.6601, allocations: 51.95 kB / 0.5666 GB, free: 41.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.837e-05/0.6602, allocations: 40.34 kB / 0.5666 GB, free: 41.95 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.334e-05/0.6602, allocations: 20 kB / 0.5666 GB, free: 41.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007392/0.661, allocations: 0.6636 MB / 0.5673 GB, free: 41.26 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002669/0.6637, allocations: 499.9 kB / 0.5678 GB, free: 40.77 MB / 378.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.0004469/0.6641, allocations: 373.7 kB / 0.5681 GB, free: 40.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001674/0.6658, allocations: 1.258 MB / 0.5693 GB, free: 39.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.6658, allocations: 448 / 0.5693 GB, free: 39.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004108/0.6662, allocations: 355.6 kB / 0.5697 GB, free: 38.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/0.6675, allocations: 258.4 kB / 0.5699 GB, free: 38.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003625/0.6711, allocations: 2.1 MB / 0.572 GB, free: 36.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000792/0.6719, allocations: 1.382 MB / 0.5733 GB, free: 34.97 MB / 378.7 MB Notification: Performance of SimCode: time 4.61e-07/0.672, allocations: 0 / 0.5733 GB, free: 34.97 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat