Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001513/0.001513, allocations: 177.7 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.477/1.477, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008178/0.0008178, allocations: 86.48 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.682e-05/1.684e-05, allocations: 0 / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08241/0.08244, allocations: 47.57 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.331/0.4135, allocations: 92.76 MB / 455.9 MB, free: 2.816 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002647/0.4138, allocations: 82.83 kB / 456 MB, free: 2.773 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06042/0.4743, allocations: 22.76 MB / 478.8 MB, free: 188 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.4743, allocations: 0 / 478.8 MB, free: 188 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.063e-05/0.4744, allocations: 24 kB / 478.8 MB, free: 164 kB / 346.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.001486/0.4759, allocations: 0.979 MB / 479.8 MB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.4759, allocations: 8.031 kB / 479.8 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004731/0.4764, allocations: 142.7 kB / 479.9 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001104/0.4775, allocations: 0.6845 MB / 480.6 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.62e-05/0.4775, allocations: 24 kB / 480.6 MB, free: 14.44 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.666e-05/0.4776, allocations: 51.98 kB / 480.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007974/0.4785, allocations: 426.6 kB / 481.1 MB, free: 14.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.4795, allocations: 0.6316 MB / 481.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.627e-05/0.4795, allocations: 3.906 kB / 481.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.774e-05/0.4796, allocations: 0 / 481.7 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.765e-05/0.4796, allocations: 20 kB / 481.8 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00382/0.4834, allocations: 3.307 MB / 485.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003442/0.4838, allocations: 186.6 kB / 485.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000131/0.4839, allocations: 95.34 kB / 485.3 MB, free: 10.58 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.769e-05/0.484, allocations: 4 kB / 485.3 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.484, allocations: 38.08 kB / 485.4 MB, free: 10.53 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 3.056e-06/0.484, allocations: 4 kB / 485.4 MB, free: 10.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.001197/0.4852, allocations: 0.7479 MB / 486.1 MB, free: 9.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.4853, allocations: 81.34 kB / 486.2 MB, free: 9.723 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005939/0.4859, allocations: 0.5249 MB / 486.7 MB, free: 9.324 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.4859, allocations: 25.7 kB / 486.8 MB, free: 9.293 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003106/0.4862, allocations: 0.4926 MB / 487.3 MB, free: 8.902 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.628e-05/0.4863, allocations: 102.5 kB / 487.4 MB, free: 8.801 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.543e-05/0.4863, allocations: 4 kB / 487.4 MB, free: 8.797 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001597/0.4865, allocations: 370.8 kB / 487.7 MB, free: 8.426 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.4867, allocations: 97.56 kB / 487.8 MB, free: 8.332 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003481/0.487, allocations: 389.6 kB / 488.2 MB, free: 7.809 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002359/0.4873, allocations: 160.9 kB / 488.3 MB, free: 7.652 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.171e-05/0.4873, allocations: 4 kB / 488.4 MB, free: 7.648 MB / 362.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007467/0.4881, allocations: 0.4937 MB / 488.8 MB, free: 7.145 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.4881, allocations: 12 kB / 488.9 MB, free: 7.133 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.4881, allocations: 8 kB / 488.9 MB, free: 7.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001331/0.4882, allocations: 37.41 kB / 488.9 MB, free: 7.086 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004432/0.4887, allocations: 147.8 kB / 489 MB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009728/0.4897, allocations: 1.241 MB / 490.3 MB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/0.4901, allocations: 27.89 kB / 490.3 MB, free: 5.559 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.746e-05/0.4902, allocations: 32 kB / 490.3 MB, free: 5.527 MB / 362.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.0001251/0.4903, allocations: 132.6 kB / 490.5 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000411/0.4907, allocations: 253.8 kB / 490.7 MB, free: 5.133 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.947e-05/0.4908, allocations: 67.14 kB / 490.8 MB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000474/0.4913, allocations: 257.2 kB / 491 MB, free: 4.801 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.4913, allocations: 11.89 kB / 491.1 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.215e-06/0.4913, allocations: 0 / 491.1 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.4913, allocations: 0 / 491.1 MB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001433/0.4928, allocations: 0.9071 MB / 492 MB, free: 3.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.4928, allocations: 4 kB / 492 MB, free: 3.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002965/0.4931, allocations: 68.12 kB / 492 MB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.101e-05/0.4932, allocations: 24.84 kB / 492.1 MB, free: 3.719 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.4932, allocations: 4 kB / 492.1 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001017/0.4942, allocations: 1.221 MB / 493.3 MB, free: 2.375 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.4943, allocations: 0 / 493.3 MB, free: 2.375 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007596/0.495, allocations: 0.5645 MB / 493.8 MB, free: 1.727 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002615/0.4953, allocations: 164.3 kB / 494 MB, free: 1.547 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.999e-05/0.4954, allocations: 0 / 494 MB, free: 1.547 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002979/0.4957, allocations: 19.98 kB / 494 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.4958, allocations: 31.86 kB / 494.1 MB, free: 1.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-05/0.4958, allocations: 12 kB / 494.1 MB, free: 1.484 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005904/0.4964, allocations: 399.2 kB / 494.5 MB, free: 1.102 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.4964, allocations: 0 / 494.5 MB, free: 1.102 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008225/0.4973, allocations: 155.9 kB / 494.6 MB, free: 0.9492 MB / 362.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.001559/0.4988, allocations: 1.733 MB / 496.3 MB, free: 15.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008466/0.4997, allocations: 382.1 kB / 496.7 MB, free: 14.76 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.4997, allocations: 0 / 496.7 MB, free: 14.76 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002877/0.5, allocations: 207.7 kB / 496.9 MB, free: 14.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008961/0.5009, allocations: 151.9 kB / 497.1 MB, free: 14.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003102/0.504, allocations: 1.1 MB / 498.2 MB, free: 13.23 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008077/0.5049, allocations: 0.9643 MB / 499.1 MB, free: 12.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005041/0.5054, allocations: 81.56 kB / 499.2 MB, free: 12.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004495/0.5058, allocations: 299.3 kB / 499.5 MB, free: 11.86 MB / 378.7 MB Notification: Performance of SimCode: time 1.613e-06/0.5059, allocations: 0 / 499.5 MB, free: 11.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03805/0.5439, allocations: 13.17 MB / 0.5007 GB, free: 14.67 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001953/0.5442, allocations: 152.9 kB / 0.5008 GB, free: 14.47 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.246/2.791, allocations: 7.938 kB / 0.5008 GB, free: 14.46 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Start.fmu > Modelica_3.2.3_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_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat does not exist to compare? outputFormat=mat