Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.PositionControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001017/0.001017, allocations: 199.8 kB / 8.536 MB, free: 1.773 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.186/1.186, allocations: 225.5 MB / 234.4 MB, free: 3.348 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000848/0.000848, allocations: 91.78 kB / 286.3 MB, free: 5.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1019/0.1027, allocations: 56.91 MB / 343.2 MB, free: 8.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09118/0.1939, allocations: 51.47 MB / 394.7 MB, free: 4.98 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2677/0.4617, allocations: 119 MB / 0.5017 GB, free: 6.656 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002467/0.462, allocations: 86.14 kB / 0.5018 GB, free: 6.613 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: 469 * Number of variables: 469 Notification: Performance of Generate backend data structure: time 0.1201/0.5821, allocations: 48.14 MB / 0.5488 GB, free: 11.27 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.5821, allocations: 8 kB / 0.5488 GB, free: 11.26 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001228/0.5834, allocations: 301 kB / 0.5491 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002874/0.5863, allocations: 1.256 MB / 0.5503 GB, free: 9.648 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002934/0.5866, allocations: 196.8 kB / 0.5505 GB, free: 9.438 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003594/0.587, allocations: 115.9 kB / 0.5506 GB, free: 9.324 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002911/0.5899, allocations: 1.257 MB / 0.5518 GB, free: 8.066 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003264/0.5932, allocations: 1.492 MB / 0.5533 GB, free: 6.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.048e-05/0.5932, allocations: 7.906 kB / 0.5533 GB, free: 6.512 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001711/0.5934, allocations: 4 kB / 0.5533 GB, free: 6.508 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.282e-05/0.5935, allocations: 44 kB / 0.5533 GB, free: 6.465 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01163/0.6051, allocations: 7.036 MB / 0.5602 GB, free: 15.13 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/0.6066, allocations: 0.5631 MB / 0.5608 GB, free: 14.56 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006764/0.6073, allocations: 380.8 kB / 0.5611 GB, free: 14.19 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.516e-05/0.6074, allocations: 12.78 kB / 0.5611 GB, free: 14.18 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.853e-05/0.6074, allocations: 51.27 kB / 0.5612 GB, free: 14.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 3.687e-06/0.6075, allocations: 0 / 0.5612 GB, free: 14.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.011/0.6185, allocations: 4.407 MB / 0.5655 GB, free: 9.621 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.969e-05/0.6186, allocations: 90.11 kB / 0.5656 GB, free: 9.516 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001849/0.6204, allocations: 0.9963 MB / 0.5666 GB, free: 8.508 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.725e-05/0.6205, allocations: 29.7 kB / 0.5666 GB, free: 8.473 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004946/0.621, allocations: 0.7744 MB / 0.5673 GB, free: 7.684 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003349/0.6214, allocations: 374.4 kB / 0.5677 GB, free: 7.312 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.431e-05/0.6215, allocations: 4 kB / 0.5677 GB, free: 7.309 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.6216, allocations: 357.9 kB / 0.568 GB, free: 6.953 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009004/0.6225, allocations: 0.5195 MB / 0.5686 GB, free: 6.434 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001155/0.6237, allocations: 0.9418 MB / 0.5695 GB, free: 5.305 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009593/0.6246, allocations: 0.5528 MB / 0.57 GB, free: 4.75 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.6247, allocations: 4 kB / 0.57 GB, free: 4.746 MB / 442.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002777/0.6275, allocations: 1.533 MB / 0.5715 GB, free: 3.203 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1156/0.743, allocations: 5.348 MB / 0.5767 GB, free: 140.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.493e-05/0.7431, allocations: 14.83 kB / 0.5767 GB, free: 140.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001815/0.7433, allocations: 43.92 kB / 0.5768 GB, free: 140.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001977/0.7453, allocations: 453.3 kB / 0.5772 GB, free: 140.1 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007734/0.7461, allocations: 1.252 MB / 0.5784 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001686/0.7478, allocations: 154.8 kB / 0.5786 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002223/0.748, allocations: 59.28 kB / 0.5786 GB, free: 139 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.752e-06/0.748, allocations: 3.625 kB / 0.5787 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002181/0.7502, allocations: 1.324 MB / 0.5799 GB, free: 138.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/0.7502, allocations: 13.94 kB / 0.58 GB, free: 138.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.3e-05/0.7503, allocations: 46.44 kB / 0.58 GB, free: 138.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/0.752, allocations: 422.8 kB / 0.5804 GB, free: 138.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000572/0.7526, allocations: 1.242 MB / 0.5816 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001396/0.754, allocations: 121.8 kB / 0.5817 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001345/0.7541, allocations: 64.3 kB / 0.5818 GB, free: 137.8 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: 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.0002516/0.7544, allocations: 157.5 kB / 0.5819 GB, free: 137.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002476/0.7547, allocations: 150.8 kB / 0.5821 GB, free: 137.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001739/0.7564, allocations: 1.072 MB / 0.5831 GB, free: 137.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.7564, allocations: 7.938 kB / 0.5831 GB, free: 137.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.81e-06/0.7564, allocations: 3.75 kB / 0.5831 GB, free: 137.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.7564, allocations: 5.828 kB / 0.5832 GB, free: 137.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00523/0.7617, allocations: 3.231 MB / 0.5863 GB, free: 136.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.7617, allocations: 11.81 kB / 0.5863 GB, free: 136.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001222/0.7629, allocations: 296.4 kB / 0.5866 GB, free: 136.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001007/0.763, allocations: 38.08 kB / 0.5866 GB, free: 136.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.026e-05/0.7631, allocations: 22.06 kB / 0.5867 GB, free: 136.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005972/0.7637, allocations: 1.239 MB / 0.5879 GB, free: 135.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.724e-06/0.7638, allocations: 12.34 kB / 0.5879 GB, free: 135.8 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002094/0.7659, allocations: 2.242 MB / 0.5901 GB, free: 134.4 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002684/0.7686, allocations: 3.087 MB / 0.5931 GB, free: 132.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004999/0.7691, allocations: 319.7 kB / 0.5934 GB, free: 132.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002823/0.7694, allocations: 16.72 kB / 0.5934 GB, free: 132.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.7705, allocations: 147 kB / 0.5935 GB, free: 132.5 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000206/0.7707, allocations: 120.6 kB / 0.5937 GB, free: 132.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.976e-05/0.7708, allocations: 38.88 kB / 0.5937 GB, free: 132.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0009665/0.7718, allocations: 0.7291 MB / 0.5944 GB, free: 132.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00332/0.7751, allocations: 0.601 MB / 0.595 GB, free: 132.3 MB / 442.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.0004719/0.7756, allocations: 394.7 kB / 0.5954 GB, free: 132.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00293/0.7785, allocations: 2.248 MB / 0.5976 GB, free: 132 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.7786, allocations: 3.844 kB / 0.5976 GB, free: 132 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007713/0.7793, allocations: 0.5348 MB / 0.5981 GB, free: 131.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001319/0.7807, allocations: 291.8 kB / 0.5984 GB, free: 131.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005125/0.7858, allocations: 2.736 MB / 0.601 GB, free: 130.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001213/0.787, allocations: 1.516 MB / 0.6025 GB, free: 130 MB / 442.7 MB Notification: Performance of SimCode: time 6.41e-07/0.7871, allocations: 4 kB / 0.6025 GB, free: 130 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat