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.001662/0.001661, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.064/2.064, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001143/0.001142, allocations: 97.38 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.088e-05/3.085e-05, allocations: 4 kB / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.425/0.4251, allocations: 47.56 MB / 362.4 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.15/0.5752, allocations: 92.52 MB / 455 MB, free: 9.746 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000307/0.5756, allocations: 79.95 kB / 455 MB, free: 9.668 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.09768/0.6733, allocations: 22.76 MB / 477.8 MB, free: 2.867 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.6733, allocations: 0 / 477.8 MB, free: 2.867 MB / 363.1 MB Notification: Performance of Transformations before backend: time 6.808e-05/0.6734, allocations: 20 kB / 477.8 MB, free: 2.848 MB / 363.1 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.00235/0.6758, allocations: 0.9825 MB / 478.8 MB, free: 1.82 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.6758, allocations: 12.03 kB / 478.8 MB, free: 1.809 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007615/0.6766, allocations: 134.8 kB / 478.9 MB, free: 1.676 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001898/0.6785, allocations: 0.6913 MB / 479.6 MB, free: 0.9375 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.384e-05/0.6786, allocations: 24 kB / 479.7 MB, free: 0.9141 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001657/0.6788, allocations: 47.98 kB / 479.7 MB, free: 0.8672 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001316/0.6801, allocations: 432 kB / 480.1 MB, free: 456 kB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001652/0.6817, allocations: 0.6279 MB / 480.7 MB, free: 15.79 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.259e-05/0.6818, allocations: 7.906 kB / 480.8 MB, free: 15.78 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.127e-05/0.6819, allocations: 0 / 480.8 MB, free: 15.78 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.099e-05/0.6819, allocations: 20 kB / 480.8 MB, free: 15.76 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006915/0.6889, allocations: 3.305 MB / 484.1 MB, free: 12.26 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005903/0.6895, allocations: 194.6 kB / 484.3 MB, free: 12.06 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.6898, allocations: 88.86 kB / 484.4 MB, free: 11.97 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.91e-05/0.6898, allocations: 7.984 kB / 484.4 MB, free: 11.96 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/0.6898, allocations: 34.52 kB / 484.4 MB, free: 11.92 MB / 379.1 MB Notification: Performance of pre-optimization done (n=25): time 2.786e-06/0.6899, allocations: 4 kB / 484.4 MB, free: 11.91 MB / 379.1 MB Notification: Performance of matching and sorting (n=28): time 0.002044/0.6919, allocations: 0.7548 MB / 485.2 MB, free: 11.1 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.917e-05/0.692, allocations: 81.34 kB / 485.2 MB, free: 11 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001051/0.6931, allocations: 0.519 MB / 485.8 MB, free: 10.48 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 4.022e-05/0.6931, allocations: 29.7 kB / 485.8 MB, free: 10.44 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004428/0.6936, allocations: 0.5237 MB / 486.3 MB, free: 9.914 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000118/0.6937, allocations: 102.5 kB / 486.4 MB, free: 9.812 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.361e-05/0.6938, allocations: 4 kB / 486.4 MB, free: 9.809 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.6939, allocations: 334.8 kB / 486.7 MB, free: 9.473 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002564/0.6942, allocations: 89.56 kB / 486.8 MB, free: 9.387 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005079/0.6947, allocations: 385.7 kB / 487.2 MB, free: 8.867 MB / 379.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004357/0.6952, allocations: 170 kB / 487.4 MB, free: 8.703 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-05/0.6952, allocations: 4 kB / 487.4 MB, free: 8.699 MB / 379.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001228/0.6964, allocations: 466.4 kB / 487.8 MB, free: 8.234 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.123e-05/0.6965, allocations: 10.66 kB / 487.8 MB, free: 8.227 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.038e-05/0.6965, allocations: 12.05 kB / 487.9 MB, free: 8.215 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002158/0.6967, allocations: 37.56 kB / 487.9 MB, free: 8.176 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008766/0.6976, allocations: 147.7 kB / 488 MB, free: 8.031 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001328/0.699, allocations: 1.237 MB / 489.3 MB, free: 6.68 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008651/0.6999, allocations: 19.98 kB / 489.3 MB, free: 6.66 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.707e-05/0.7, allocations: 36 kB / 489.3 MB, free: 6.625 MB / 379.1 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.0001813/0.7002, allocations: 128.8 kB / 489.4 MB, free: 6.492 MB / 379.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007002/0.7009, allocations: 257.6 kB / 489.7 MB, free: 6.23 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.7011, allocations: 67.23 kB / 489.8 MB, free: 6.164 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007226/0.7018, allocations: 253.1 kB / 490 MB, free: 5.902 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.047e-06/0.7018, allocations: 7.891 kB / 490 MB, free: 5.895 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.465e-06/0.7018, allocations: 4 kB / 490 MB, free: 5.891 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.7018, allocations: 3.984 kB / 490 MB, free: 5.887 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002088/0.7039, allocations: 0.9148 MB / 490.9 MB, free: 4.906 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.704, allocations: 0 / 490.9 MB, free: 4.906 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000532/0.7045, allocations: 68.11 kB / 491 MB, free: 4.84 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000145/0.7047, allocations: 20.86 kB / 491 MB, free: 4.816 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.7047, allocations: 4 kB / 491 MB, free: 4.812 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001162/0.7059, allocations: 1.229 MB / 492.3 MB, free: 3.465 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.7059, allocations: 4.031 kB / 492.3 MB, free: 3.461 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.7071, allocations: 0.5607 MB / 492.8 MB, free: 2.816 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003634/0.7075, allocations: 160.3 kB / 493 MB, free: 2.641 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.7076, allocations: 4 kB / 493 MB, free: 2.637 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005396/0.7081, allocations: 15.98 kB / 493 MB, free: 2.621 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.86e-05/0.7083, allocations: 31.92 kB / 493 MB, free: 2.59 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-05/0.7083, allocations: 12 kB / 493 MB, free: 2.578 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0007998/0.7091, allocations: 395.2 kB / 493.4 MB, free: 2.199 MB / 379.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.7091, allocations: 0 / 493.4 MB, free: 2.199 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001111/0.7102, allocations: 155.9 kB / 493.6 MB, free: 2.047 MB / 379.1 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.001963/0.7122, allocations: 1.732 MB / 495.3 MB, free: 252 kB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.7133, allocations: 394 kB / 495.7 MB, free: 15.85 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/0.7134, allocations: 0 / 495.7 MB, free: 15.85 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004223/0.7138, allocations: 203.6 kB / 495.9 MB, free: 15.64 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001452/0.7153, allocations: 147.5 kB / 496 MB, free: 15.5 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003825/0.7191, allocations: 1.15 MB / 497.2 MB, free: 14.28 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007135/0.7199, allocations: 0.9565 MB / 498.2 MB, free: 13.29 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006307/0.7205, allocations: 307.3 kB / 498.5 MB, free: 12.99 MB / 395.1 MB Notification: Performance of SimCode: time 1.452e-06/0.7206, allocations: 0 / 498.5 MB, free: 12.99 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.302/4.023, allocations: 16.84 MB / 0.5032 GB, free: 113 MB / 395.1 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