Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002348/0.002353, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.219/2.219, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00118/0.00118, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.796e-05/3.816e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1026, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4346/0.5372, allocations: 93.18 MB / 462.4 MB, free: 276 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.5376, allocations: 80.95 kB / 462.4 MB, free: 236 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09921/0.6368, allocations: 23.08 MB / 485.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.6369, allocations: 0 / 485.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.603e-05/0.637, allocations: 16 kB / 485.5 MB, free: 10.61 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002299/0.6393, allocations: 0.9746 MB / 486.5 MB, free: 9.586 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.6393, allocations: 8.031 kB / 486.5 MB, free: 9.578 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002617/0.6396, allocations: 130.9 kB / 486.7 MB, free: 9.441 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007232/0.6403, allocations: 142.7 kB / 486.8 MB, free: 9.301 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001852/0.6422, allocations: 0.6874 MB / 487.5 MB, free: 8.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.148e-05/0.6423, allocations: 58 kB / 487.5 MB, free: 8.512 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001816/0.6425, allocations: 80 kB / 487.6 MB, free: 8.434 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001945/0.6445, allocations: 0.7327 MB / 488.3 MB, free: 7.672 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.141e-05/0.6445, allocations: 11.91 kB / 488.4 MB, free: 7.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/0.6446, allocations: 32 kB / 488.4 MB, free: 7.629 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.79e-05/0.6447, allocations: 20.44 kB / 488.4 MB, free: 7.609 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/0.6461, allocations: 483.8 kB / 488.9 MB, free: 7.133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006876/0.653, allocations: 3.453 MB / 492.3 MB, free: 3.469 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006292/0.6537, allocations: 223.2 kB / 492.6 MB, free: 3.242 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002561/0.654, allocations: 96.8 kB / 492.6 MB, free: 3.145 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.037e-05/0.654, allocations: 4 kB / 492.6 MB, free: 3.141 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.6541, allocations: 30.56 kB / 492.7 MB, free: 3.102 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 3.687e-06/0.6541, allocations: 0 / 492.7 MB, free: 3.102 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.002126/0.6562, allocations: 0.815 MB / 493.5 MB, free: 2.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.835e-05/0.6563, allocations: 81.34 kB / 493.6 MB, free: 2.133 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001293/0.6576, allocations: 0.617 MB / 494.2 MB, free: 1.512 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.6577, allocations: 29.7 kB / 494.2 MB, free: 1.477 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004647/0.6581, allocations: 0.5123 MB / 494.7 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.6583, allocations: 106.5 kB / 494.8 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.642e-05/0.6583, allocations: 16 kB / 494.9 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.6585, allocations: 338.8 kB / 495.2 MB, free: 0.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003075/0.6588, allocations: 105.6 kB / 495.3 MB, free: 408 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006134/0.6594, allocations: 399.3 kB / 495.7 MB, free: 15.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004743/0.6599, allocations: 180.3 kB / 495.9 MB, free: 15.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.847e-06/0.66, allocations: 7.938 kB / 495.9 MB, free: 15.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001332/0.6613, allocations: 0.522 MB / 496.4 MB, free: 15.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.6614, allocations: 12 kB / 496.4 MB, free: 15.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.808e-05/0.6614, allocations: 8 kB / 496.4 MB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002185/0.6616, allocations: 32.8 kB / 496.4 MB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008809/0.6625, allocations: 147.8 kB / 496.6 MB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.6639, allocations: 1.28 MB / 497.9 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008726/0.6648, allocations: 48 kB / 497.9 MB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.171e-05/0.6649, allocations: 32 kB / 497.9 MB, free: 13.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 73 * 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.0001883/0.6651, allocations: 141.5 kB / 498.1 MB, free: 13.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.6652, allocations: 75.08 kB / 498.1 MB, free: 13.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008366/0.6661, allocations: 285.5 kB / 498.4 MB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-05/0.6661, allocations: 4 kB / 498.4 MB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.6661, allocations: 7.891 kB / 498.4 MB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.6662, allocations: 7.984 kB / 498.4 MB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002343/0.6685, allocations: 1.059 MB / 499.5 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.396e-06/0.6686, allocations: 4 kB / 499.5 MB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005325/0.6691, allocations: 59.97 kB / 499.6 MB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001424/0.6693, allocations: 24.78 kB / 499.6 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.942e-05/0.6693, allocations: 8 kB / 499.6 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001274/0.6706, allocations: 1.268 MB / 0.4891 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.6706, allocations: 4.031 kB / 0.4891 GB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.6718, allocations: 0.5874 MB / 0.4897 GB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004113/0.6723, allocations: 176.2 kB / 0.4899 GB, free: 9.418 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001276/0.6724, allocations: 8 kB / 0.4899 GB, free: 9.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005653/0.673, allocations: 27.94 kB / 0.4899 GB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.878e-05/0.6731, allocations: 23.97 kB / 0.4899 GB, free: 9.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.798e-05/0.6732, allocations: 8 kB / 0.4899 GB, free: 9.352 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001026/0.6742, allocations: 479.2 kB / 0.4904 GB, free: 8.891 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.6742, allocations: 0 / 0.4904 GB, free: 8.891 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001224/0.6755, allocations: 192 kB / 0.4906 GB, free: 8.703 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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.002224/0.6777, allocations: 1.799 MB / 0.4923 GB, free: 6.824 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.6789, allocations: 420.7 kB / 0.4927 GB, free: 6.402 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.6789, allocations: 0 / 0.4927 GB, free: 6.402 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004665/0.6794, allocations: 218.5 kB / 0.4929 GB, free: 6.176 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001466/0.6809, allocations: 168.3 kB / 0.4931 GB, free: 6.012 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003791/0.6848, allocations: 1.202 MB / 0.4943 GB, free: 4.738 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007617/0.6856, allocations: 0.9608 MB / 0.4952 GB, free: 3.746 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006507/0.6862, allocations: 303.3 kB / 0.4955 GB, free: 3.449 MB / 378.7 MB Notification: Performance of SimCode: time 1.132e-06/0.6862, allocations: 0 / 0.4955 GB, free: 3.449 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.902/3.588, allocations: 17.46 MB / 0.5126 GB, free: 1.961 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat