Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.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.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001066/0.001066, allocations: 195.1 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.15/1.15, allocations: 225.5 MB / 234.4 MB, free: 3.277 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008572/0.0008571, allocations: 96.91 kB / 286.3 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09682/0.0977, allocations: 56.91 MB / 343.2 MB, free: 8.582 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.1867, allocations: 51.47 MB / 394.7 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2439/0.4307, allocations: 117.9 MB / 0.5006 GB, free: 7.879 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002916/0.431, allocations: 85.58 kB / 0.5006 GB, free: 7.836 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: 413 * Number of variables: 413 Notification: Performance of Generate backend data structure: time 0.1087/0.5397, allocations: 43.51 MB / 0.5431 GB, free: 1.227 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.5398, allocations: 8 kB / 0.5431 GB, free: 1.219 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008239/0.5406, allocations: 273.3 kB / 0.5434 GB, free: 0.9492 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/0.5428, allocations: 1.158 MB / 0.5445 GB, free: 15.73 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.257e-05/0.5429, allocations: 52 kB / 0.5446 GB, free: 15.68 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001969/0.5431, allocations: 107.9 kB / 0.5447 GB, free: 15.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001752/0.5449, allocations: 0.8734 MB / 0.5455 GB, free: 14.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002228/0.5471, allocations: 1.247 MB / 0.5467 GB, free: 13.39 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.369e-05/0.5472, allocations: 7.938 kB / 0.5468 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-05/0.5473, allocations: 0 / 0.5468 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.683e-05/0.5473, allocations: 40 kB / 0.5468 GB, free: 13.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008656/0.556, allocations: 6.352 MB / 0.553 GB, free: 6.699 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.5572, allocations: 474.9 kB / 0.5535 GB, free: 6.227 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004484/0.5577, allocations: 246.8 kB / 0.5537 GB, free: 5.984 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.659e-05/0.5577, allocations: 4.5 kB / 0.5537 GB, free: 5.977 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.827e-05/0.5578, allocations: 43.06 kB / 0.5537 GB, free: 5.926 MB / 426.7 MB Notification: Performance of pre-optimization done (n=61): time 3.827e-06/0.5578, allocations: 0 / 0.5537 GB, free: 5.926 MB / 426.7 MB Notification: Performance of matching and sorting (n=64): time 0.002608/0.5604, allocations: 1.426 MB / 0.5551 GB, free: 4.445 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.5605, allocations: 85.77 kB / 0.5552 GB, free: 4.344 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001322/0.5618, allocations: 0.8893 MB / 0.5561 GB, free: 3.445 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.219e-05/0.5618, allocations: 25.7 kB / 0.5561 GB, free: 3.414 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004232/0.5623, allocations: 0.7113 MB / 0.5568 GB, free: 2.691 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.5624, allocations: 228.6 kB / 0.557 GB, free: 2.465 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.189e-05/0.5625, allocations: 0 / 0.557 GB, free: 2.465 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.5626, allocations: 353.8 kB / 0.5573 GB, free: 2.113 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003948/0.563, allocations: 222.6 kB / 0.5576 GB, free: 1.898 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000688/0.5637, allocations: 0.62 MB / 0.5582 GB, free: 1.09 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005413/0.5643, allocations: 334.9 kB / 0.5585 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.5643, allocations: 4 kB / 0.5585 GB, free: 0.7617 MB / 426.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.001544/0.5658, allocations: 0.9109 MB / 0.5594 GB, free: 15.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001961/0.5678, allocations: 5.317 MB / 0.5646 GB, free: 10.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.89e-05/0.5678, allocations: 12 kB / 0.5646 GB, free: 10.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001717/0.568, allocations: 44.78 kB / 0.5646 GB, free: 10.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009964/0.569, allocations: 279.6 kB / 0.5649 GB, free: 9.789 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009925/0.57, allocations: 1.241 MB / 0.5661 GB, free: 8.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008648/0.5709, allocations: 60.02 kB / 0.5662 GB, free: 8.371 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.3e-05/0.571, allocations: 48 kB / 0.5662 GB, free: 8.324 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.861e-06/0.571, allocations: 8 kB / 0.5662 GB, free: 8.316 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001248/0.5723, allocations: 0.7336 MB / 0.5669 GB, free: 7.582 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.5723, allocations: 23.97 kB / 0.567 GB, free: 7.559 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.911e-05/0.5724, allocations: 36.86 kB / 0.567 GB, free: 7.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008357/0.5732, allocations: 264.2 kB / 0.5672 GB, free: 7.262 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008937/0.5741, allocations: 1.248 MB / 0.5685 GB, free: 5.895 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007147/0.5749, allocations: 31.89 kB / 0.5685 GB, free: 5.863 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.889e-05/0.575, allocations: 52.09 kB / 0.5685 GB, free: 5.812 MB / 442.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.0001837/0.5752, allocations: 140.5 kB / 0.5687 GB, free: 5.668 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001682/0.5753, allocations: 130.4 kB / 0.5688 GB, free: 5.539 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.5764, allocations: 0.5407 MB / 0.5693 GB, free: 4.984 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.5764, allocations: 8 kB / 0.5693 GB, free: 4.977 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.5764, allocations: 0 / 0.5693 GB, free: 4.977 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.5764, allocations: 3.984 kB / 0.5693 GB, free: 4.973 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002666/0.5791, allocations: 1.733 MB / 0.571 GB, free: 3.172 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.5791, allocations: 4 kB / 0.571 GB, free: 3.168 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006696/0.5798, allocations: 152 kB / 0.5712 GB, free: 3.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.527e-05/0.5799, allocations: 20.8 kB / 0.5712 GB, free: 2.996 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.188e-05/0.5799, allocations: 11.98 kB / 0.5712 GB, free: 2.984 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008493/0.5808, allocations: 1.227 MB / 0.5724 GB, free: 1.645 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.5808, allocations: 3.938 kB / 0.5724 GB, free: 1.641 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001287/0.5821, allocations: 0.9989 MB / 0.5734 GB, free: 0.5703 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1245/0.7066, allocations: 1.631 MB / 0.575 GB, free: 143.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00038/0.707, allocations: 255.5 kB / 0.5752 GB, free: 143.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.7072, allocations: 11.44 kB / 0.5752 GB, free: 143.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005985/0.7078, allocations: 54.75 kB / 0.5753 GB, free: 143.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8e-05/0.7079, allocations: 35.27 kB / 0.5753 GB, free: 143.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.763e-05/0.7079, allocations: 19.31 kB / 0.5753 GB, free: 143.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.000812/0.7087, allocations: 0.6532 MB / 0.576 GB, free: 143.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002607/0.7113, allocations: 498.2 kB / 0.5765 GB, free: 143.6 MB / 442.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.0004429/0.7118, allocations: 365.9 kB / 0.5768 GB, free: 143.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001643/0.7135, allocations: 1.259 MB / 0.578 GB, free: 143.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.7135, allocations: 0 / 0.578 GB, free: 143.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000402/0.7139, allocations: 350.2 kB / 0.5784 GB, free: 143.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.715, allocations: 253 kB / 0.5786 GB, free: 143.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003512/0.7185, allocations: 2.079 MB / 0.5806 GB, free: 142.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008542/0.7194, allocations: 1.381 MB / 0.582 GB, free: 141.8 MB / 442.7 MB Notification: Performance of SimCode: time 6.52e-07/0.7194, allocations: 3.281 kB / 0.582 GB, free: 141.8 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_SpeedControlledDCPM.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.SpeedControlledDCPM_res.mat does not exist to compare? outputFormat=mat