Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.PositionControlledDCPM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 183.3 kB / 8.132 MB, free: 2.219 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.074 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.0009995/0.0009995, allocations: 105 kB / 280.8 MB, free: 1.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09722/0.09825, allocations: 55.81 MB / 336.6 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1992/0.2975, allocations: 50.4 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1115/0.4091, allocations: 117.4 MB / 0.4925 GB, free: 1.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002246/0.4093, allocations: 87.89 kB / 0.4926 GB, free: 1.254 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.2308/0.6401, allocations: 48.39 MB / 0.5399 GB, free: 71.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.6402, allocations: 12 kB / 0.5399 GB, free: 71.24 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009018/0.6411, allocations: 304.9 kB / 0.5402 GB, free: 70.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002216/0.6433, allocations: 1.263 MB / 0.5414 GB, free: 69.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002187/0.6436, allocations: 196.8 kB / 0.5416 GB, free: 69.44 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002461/0.6438, allocations: 119.8 kB / 0.5417 GB, free: 69.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00222/0.646, allocations: 1.273 MB / 0.543 GB, free: 68.05 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002296/0.6484, allocations: 1.501 MB / 0.5444 GB, free: 66.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.959e-05/0.6484, allocations: 4 kB / 0.5444 GB, free: 66.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001167/0.6485, allocations: 7.891 kB / 0.5444 GB, free: 66.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.84e-05/0.6486, allocations: 48 kB / 0.5445 GB, free: 66.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008813/0.6574, allocations: 7.135 MB / 0.5515 GB, free: 59.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001199/0.6586, allocations: 0.5709 MB / 0.552 GB, free: 58.48 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005356/0.6592, allocations: 375.1 kB / 0.5524 GB, free: 58.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.305e-05/0.6592, allocations: 8.781 kB / 0.5524 GB, free: 58.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.435e-05/0.6593, allocations: 43.34 kB / 0.5524 GB, free: 58.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.936e-06/0.6593, allocations: 0 / 0.5524 GB, free: 58.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.00902/0.6683, allocations: 4.424 MB / 0.5567 GB, free: 53.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/0.6684, allocations: 94.09 kB / 0.5568 GB, free: 53.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001301/0.6697, allocations: 1.001 MB / 0.5578 GB, free: 52.42 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.512e-05/0.6698, allocations: 29.64 kB / 0.5578 GB, free: 52.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002496/0.67, allocations: 0.7861 MB / 0.5586 GB, free: 51.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002003/0.6702, allocations: 378.4 kB / 0.559 GB, free: 51.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.233e-05/0.6703, allocations: 0 / 0.559 GB, free: 51.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.152e-05/0.6704, allocations: 361.8 kB / 0.5593 GB, free: 50.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007264/0.6711, allocations: 0.5195 MB / 0.5598 GB, free: 50.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008756/0.672, allocations: 0.9418 MB / 0.5607 GB, free: 49.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007589/0.6728, allocations: 0.5528 MB / 0.5613 GB, free: 48.65 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.6728, allocations: 4 kB / 0.5613 GB, free: 48.65 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002154/0.6749, allocations: 1.533 MB / 0.5628 GB, free: 47.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007244/0.6757, allocations: 5.352 MB / 0.568 GB, free: 41.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.79e-05/0.6757, allocations: 16 kB / 0.568 GB, free: 41.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001407/0.6758, allocations: 48.84 kB / 0.5681 GB, free: 41.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/0.6776, allocations: 443.4 kB / 0.5685 GB, free: 40.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007445/0.6784, allocations: 1.252 MB / 0.5697 GB, free: 39.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/0.6799, allocations: 148 kB / 0.5699 GB, free: 39.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/0.68, allocations: 67.98 kB / 0.5699 GB, free: 39.3 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.833e-06/0.68, allocations: 11.12 kB / 0.5699 GB, free: 39.3 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001882/0.6819, allocations: 1.326 MB / 0.5712 GB, free: 37.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.682, allocations: 16 kB / 0.5712 GB, free: 37.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.902e-05/0.6821, allocations: 40.84 kB / 0.5713 GB, free: 37.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/0.6837, allocations: 420 kB / 0.5717 GB, free: 37.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005646/0.6842, allocations: 1.255 MB / 0.5729 GB, free: 36.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001302/0.6856, allocations: 124 kB / 0.573 GB, free: 36.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.6857, allocations: 68 kB / 0.5731 GB, free: 35.94 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: 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.0002231/0.6859, allocations: 144.5 kB / 0.5732 GB, free: 35.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002035/0.6861, allocations: 150.1 kB / 0.5734 GB, free: 35.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.6878, allocations: 1.066 MB / 0.5744 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.6878, allocations: 12 kB / 0.5744 GB, free: 34.55 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.6878, allocations: 3.906 kB / 0.5744 GB, free: 34.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.6878, allocations: 3.984 kB / 0.5744 GB, free: 34.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004929/0.6927, allocations: 3.243 MB / 0.5776 GB, free: 31.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.659e-06/0.6928, allocations: 12.06 kB / 0.5776 GB, free: 31.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.6939, allocations: 291.6 kB / 0.5779 GB, free: 30.85 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.604e-05/0.694, allocations: 44.77 kB / 0.5779 GB, free: 30.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.847e-05/0.6941, allocations: 24 kB / 0.578 GB, free: 30.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005393/0.6946, allocations: 1.236 MB / 0.5792 GB, free: 29.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.6947, allocations: 19.92 kB / 0.5792 GB, free: 29.41 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001894/0.6966, allocations: 2.256 MB / 0.5814 GB, free: 26.68 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002505/0.6991, allocations: 3.09 MB / 0.5844 GB, free: 23.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000494/0.6996, allocations: 319.2 kB / 0.5847 GB, free: 22.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002582/0.6998, allocations: 19.89 kB / 0.5847 GB, free: 22.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.701, allocations: 147.8 kB / 0.5849 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/0.7012, allocations: 116.3 kB / 0.585 GB, free: 22.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.778e-05/0.7013, allocations: 43.94 kB / 0.585 GB, free: 22.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0009083/0.7022, allocations: 0.7369 MB / 0.5857 GB, free: 21.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003286/0.7055, allocations: 0.6093 MB / 0.5863 GB, free: 21.1 MB / 378.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.0004814/0.706, allocations: 396 kB / 0.5867 GB, free: 20.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00303/0.709, allocations: 2.246 MB / 0.5889 GB, free: 18.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.709, allocations: 5.5 kB / 0.5889 GB, free: 18.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008028/0.7098, allocations: 0.5401 MB / 0.5894 GB, free: 17.92 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001412/0.7113, allocations: 280.8 kB / 0.5897 GB, free: 17.65 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005315/0.7166, allocations: 2.743 MB / 0.5924 GB, free: 14.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00125/0.7179, allocations: 1.522 MB / 0.5939 GB, free: 13.18 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.7179, allocations: 4 kB / 0.5939 GB, free: 13.17 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat