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.001542/0.001542, allocations: 185.5 kB / 16.4 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.918/1.918, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001127/0.001126, allocations: 92.41 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000386/0.000386, allocations: 16 kB / 327.1 MB, free: 80 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3349, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1499/0.4849, allocations: 93.27 MB / 467.9 MB, free: 3.316 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003319/0.4853, allocations: 87.95 kB / 468 MB, free: 3.23 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1047/0.59, allocations: 23.06 MB / 491.1 MB, free: 12.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.209e-06/0.5901, allocations: 0 / 491.1 MB, free: 12.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.004e-05/0.5902, allocations: 19.94 kB / 491.1 MB, free: 12 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.003155/0.5933, allocations: 1.091 MB / 492.2 MB, free: 10.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.886e-05/0.5934, allocations: 12.03 kB / 492.2 MB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003499/0.5938, allocations: 126.9 kB / 492.3 MB, free: 10.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008274/0.5946, allocations: 142.7 kB / 492.4 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/0.5968, allocations: 0.6913 MB / 493.1 MB, free: 9.836 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.66e-05/0.5969, allocations: 58 kB / 493.2 MB, free: 9.777 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001952/0.5971, allocations: 83.91 kB / 493.3 MB, free: 9.695 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002362/0.5995, allocations: 0.7754 MB / 494 MB, free: 8.891 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.077e-05/0.5996, allocations: 0 / 494 MB, free: 8.891 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.5997, allocations: 36 kB / 494.1 MB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.391e-05/0.5998, allocations: 20 kB / 494.1 MB, free: 8.836 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002148/0.6019, allocations: 0.5309 MB / 494.6 MB, free: 8.301 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008076/0.6101, allocations: 3.465 MB / 498.1 MB, free: 4.625 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008826/0.611, allocations: 238.4 kB / 498.3 MB, free: 4.383 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.831e-05/0.6111, allocations: 4 kB / 498.3 MB, free: 4.379 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.6111, allocations: 38.56 kB / 498.4 MB, free: 4.332 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 3.106e-06/0.6112, allocations: 0 / 498.4 MB, free: 4.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.003634/0.6148, allocations: 1.077 MB / 499.5 MB, free: 3.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.619e-05/0.6149, allocations: 85.34 kB / 499.5 MB, free: 3.078 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001424/0.6164, allocations: 0.617 MB / 0.4884 GB, free: 2.457 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.982e-05/0.6165, allocations: 29.7 kB / 0.4885 GB, free: 2.422 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004967/0.617, allocations: 0.5161 MB / 0.489 GB, free: 1.902 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.6171, allocations: 110.5 kB / 0.4891 GB, free: 1.793 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.126e-05/0.6172, allocations: 16 kB / 0.4891 GB, free: 1.777 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.6174, allocations: 334.8 kB / 0.4894 GB, free: 1.441 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005382/0.6179, allocations: 129.2 kB / 0.4895 GB, free: 1.316 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007854/0.6187, allocations: 426.2 kB / 0.4899 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006897/0.6194, allocations: 200.5 kB / 0.4901 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.778e-06/0.6195, allocations: 4 kB / 0.4901 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.2746/0.8941, allocations: 0.5807 MB / 0.4907 GB, free: 98.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.74e-05/0.8942, allocations: 9.781 kB / 0.4907 GB, free: 98.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.944e-05/0.8942, allocations: 10.59 kB / 0.4907 GB, free: 98.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002828/0.8945, allocations: 33.88 kB / 0.4907 GB, free: 98.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009922/0.8955, allocations: 144.7 kB / 0.4909 GB, free: 98.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001223/0.8968, allocations: 1.291 MB / 0.4921 GB, free: 97.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00091/0.8977, allocations: 37.39 kB / 0.4922 GB, free: 97.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.284e-05/0.8979, allocations: 30.25 kB / 0.4922 GB, free: 97.34 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 () * Number of clocked 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.0006516/0.8985, allocations: 240.7 kB / 0.4924 GB, free: 97.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002284/0.8988, allocations: 71 kB / 0.4925 GB, free: 97.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00122/0.9, allocations: 348.8 kB / 0.4928 GB, free: 97.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.049e-05/0.9, allocations: 3.031 kB / 0.4928 GB, free: 97.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.9, allocations: 3.578 kB / 0.4928 GB, free: 97.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.9001, allocations: 1.375 kB / 0.4928 GB, free: 97.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002703/0.9028, allocations: 1.091 MB / 0.4939 GB, free: 96.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.635e-06/0.9028, allocations: 2.156 kB / 0.4939 GB, free: 96.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000513/0.9034, allocations: 66.86 kB / 0.494 GB, free: 96.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000142/0.9035, allocations: 23.19 kB / 0.494 GB, free: 96.8 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.064e-05/0.9036, allocations: 9.219 kB / 0.494 GB, free: 96.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009313/0.9045, allocations: 1.274 MB / 0.4953 GB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.991e-06/0.9045, allocations: 5.25 kB / 0.4953 GB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001522/0.9061, allocations: 0.6653 MB / 0.4959 GB, free: 95.24 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004087/0.9065, allocations: 171.4 kB / 0.4961 GB, free: 95.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.9067, allocations: 12.2 kB / 0.4961 GB, free: 95.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005349/0.9072, allocations: 20.84 kB / 0.4961 GB, free: 95.14 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.751e-05/0.9073, allocations: 28.3 kB / 0.4961 GB, free: 95.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.45e-05/0.9074, allocations: 13.41 kB / 0.4961 GB, free: 95.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009576/0.9083, allocations: 483.5 kB / 0.4966 GB, free: 95.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.9083, allocations: 0 / 0.4966 GB, free: 95.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001235/0.9096, allocations: 194.9 kB / 0.4968 GB, free: 95.04 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 () * Number of clocked 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.002312/0.9119, allocations: 1.854 MB / 0.4986 GB, free: 93.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001402/0.9134, allocations: 480.3 kB / 0.4991 GB, free: 93.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/0.9134, allocations: 0 / 0.4991 GB, free: 93.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006016/0.914, allocations: 247.7 kB / 0.4993 GB, free: 93.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001435/0.9155, allocations: 174.1 kB / 0.4995 GB, free: 93.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/0.9272, allocations: 10.8 MB / 0.51 GB, free: 85.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005376/0.9278, allocations: 0.9618 MB / 0.5109 GB, free: 84.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005551/0.9284, allocations: 312.5 kB / 0.5112 GB, free: 84.42 MB / 378.7 MB Notification: Performance of SimCode: time 1.342e-06/0.9284, allocations: 0 / 0.5112 GB, free: 84.42 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.849/3.777, allocations: 17.63 MB / 0.5285 GB, free: 81.18 MB / 378.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