Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.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.CurrentControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",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.001361/0.001361, allocations: 199.4 kB / 8.536 MB, free: 472 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.142/1.142, allocations: 225.5 MB / 234.4 MB, free: 9.492 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009009/0.0009009, allocations: 98.94 kB / 286.3 MB, free: 5.91 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.1072/0.1081, allocations: 56.89 MB / 343.2 MB, free: 13.01 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.3142, allocations: 51.46 MB / 394.7 MB, free: 47.66 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1136/0.4278, allocations: 117.1 MB / 0.4998 GB, free: 6.785 MB / 386.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002207/0.428, allocations: 84.89 kB / 0.4999 GB, free: 6.703 MB / 386.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.2271/0.6552, allocations: 40.14 MB / 0.5391 GB, free: 85.02 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.025e-05/0.6552, allocations: 7.125 kB / 0.5391 GB, free: 85.02 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006777/0.6559, allocations: 249.9 kB / 0.5393 GB, free: 84.93 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001484/0.6574, allocations: 1.069 MB / 0.5404 GB, free: 84.64 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.6574, allocations: 46.22 kB / 0.5404 GB, free: 84.64 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.6576, allocations: 95.44 kB / 0.5405 GB, free: 84.63 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001231/0.6588, allocations: 0.7791 MB / 0.5413 GB, free: 84.62 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001672/0.6605, allocations: 1.137 MB / 0.5424 GB, free: 84.45 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.325e-05/0.6605, allocations: 8.406 kB / 0.5424 GB, free: 84.45 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.6607, allocations: 3 kB / 0.5424 GB, free: 84.45 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.328e-05/0.6607, allocations: 34 kB / 0.5424 GB, free: 84.45 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005349/0.6661, allocations: 5.839 MB / 0.5481 GB, free: 82 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006386/0.6667, allocations: 324.2 kB / 0.5484 GB, free: 81.97 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002703/0.667, allocations: 202.7 kB / 0.5486 GB, free: 81.96 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 3.477e-05/0.6671, allocations: 10.69 kB / 0.5486 GB, free: 81.96 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.496e-05/0.6671, allocations: 38.53 kB / 0.5487 GB, free: 81.93 MB / 418.8 MB Notification: Performance of pre-optimization done (n=51): time 1.583e-06/0.6671, allocations: 3.719 kB / 0.5487 GB, free: 81.93 MB / 418.8 MB Notification: Performance of matching and sorting (n=54): time 0.001492/0.6686, allocations: 1.256 MB / 0.5499 GB, free: 81.35 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.516e-05/0.6686, allocations: 86.73 kB / 0.55 GB, free: 81.26 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008278/0.6695, allocations: 0.7965 MB / 0.5508 GB, free: 81.11 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.6695, allocations: 25.7 kB / 0.5508 GB, free: 81.07 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001946/0.6697, allocations: 0.6559 MB / 0.5514 GB, free: 80.66 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.707e-05/0.6698, allocations: 192.8 kB / 0.5516 GB, free: 80.54 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.691e-05/0.6698, allocations: 0.6562 kB / 0.5516 GB, free: 80.54 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 5.15e-05/0.6699, allocations: 347 kB / 0.5519 GB, free: 80.23 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002644/0.6701, allocations: 190.1 kB / 0.5521 GB, free: 80.23 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003811/0.6705, allocations: 0.561 MB / 0.5527 GB, free: 79.75 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003549/0.6709, allocations: 291.9 kB / 0.5529 GB, free: 79.75 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/0.6709, allocations: 3.031 kB / 0.5529 GB, free: 79.75 MB / 418.8 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001018/0.6719, allocations: 0.8132 MB / 0.5537 GB, free: 79.64 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005973/0.6725, allocations: 5.136 MB / 0.5588 GB, free: 74.29 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.276e-05/0.6726, allocations: 14.03 kB / 0.5588 GB, free: 74.29 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001183/0.6727, allocations: 37.59 kB / 0.5588 GB, free: 74.29 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006958/0.6734, allocations: 233.7 kB / 0.559 GB, free: 74.29 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006043/0.674, allocations: 1.244 MB / 0.5602 GB, free: 73.09 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005929/0.6746, allocations: 33.02 kB / 0.5603 GB, free: 73.09 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.222e-05/0.6747, allocations: 47.59 kB / 0.5603 GB, free: 73.09 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 3.747e-06/0.6747, allocations: 3.844 kB / 0.5603 GB, free: 73.09 MB / 418.8 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008452/0.6755, allocations: 0.6657 MB / 0.561 GB, free: 73.02 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.6755, allocations: 15.72 kB / 0.561 GB, free: 73.02 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.297e-05/0.6756, allocations: 37.27 kB / 0.561 GB, free: 73.02 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006244/0.6763, allocations: 222.7 kB / 0.5612 GB, free: 73 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005015/0.6768, allocations: 1.239 MB / 0.5624 GB, free: 71.79 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004894/0.6773, allocations: 22.44 kB / 0.5625 GB, free: 71.79 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.773e-05/0.6773, allocations: 46.09 kB / 0.5625 GB, free: 71.79 MB / 418.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0001092/0.6774, allocations: 141.1 kB / 0.5626 GB, free: 71.66 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.6776, allocations: 110.2 kB / 0.5628 GB, free: 71.61 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006673/0.6782, allocations: 469.5 kB / 0.5632 GB, free: 71.54 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.6783, allocations: 7.875 kB / 0.5632 GB, free: 71.54 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.6783, allocations: 0 / 0.5632 GB, free: 71.54 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.6783, allocations: 3.281 kB / 0.5632 GB, free: 71.54 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001704/0.68, allocations: 1.546 MB / 0.5647 GB, free: 71.16 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.68, allocations: 3.594 kB / 0.5647 GB, free: 71.16 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004829/0.6805, allocations: 111.2 kB / 0.5648 GB, free: 71.15 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.835e-05/0.6806, allocations: 26.8 kB / 0.5649 GB, free: 71.14 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.6806, allocations: 9.984 kB / 0.5649 GB, free: 71.14 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005135/0.6811, allocations: 1.221 MB / 0.5661 GB, free: 69.94 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6811, allocations: 0 / 0.5661 GB, free: 69.94 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007918/0.6819, allocations: 0.8729 MB / 0.5669 GB, free: 69.55 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001094/0.683, allocations: 1.453 MB / 0.5683 GB, free: 68.77 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002337/0.6833, allocations: 228.1 kB / 0.5685 GB, free: 68.62 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/0.6834, allocations: 6.531 kB / 0.5686 GB, free: 68.62 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004741/0.6839, allocations: 34.36 kB / 0.5686 GB, free: 68.62 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.119e-05/0.684, allocations: 33.67 kB / 0.5686 GB, free: 68.62 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-05/0.684, allocations: 16.73 kB / 0.5686 GB, free: 68.62 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.0006037/0.6846, allocations: 0.5915 MB / 0.5692 GB, free: 68.5 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.002293/0.6869, allocations: 458.9 kB / 0.5696 GB, free: 68.5 MB / 418.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (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,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.0003963/0.6873, allocations: 370 kB / 0.57 GB, free: 68.37 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.001259/0.6886, allocations: 1.117 MB / 0.5711 GB, free: 68.08 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.6886, allocations: 4.703 kB / 0.5711 GB, free: 68.08 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.000305/0.6889, allocations: 306.9 kB / 0.5714 GB, free: 67.97 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009024/0.6898, allocations: 226.5 kB / 0.5716 GB, free: 67.96 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00285/0.6927, allocations: 1.828 MB / 0.5734 GB, free: 67.26 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006809/0.6934, allocations: 1.306 MB / 0.5747 GB, free: 66.51 MB / 418.8 MB Notification: Performance of SimCode: time 2.81e-07/0.6934, allocations: 0 / 0.5747 GB, free: 66.51 MB / 418.8 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat