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.0009869/0.000987, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.411/1.411, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008236/0.0008237, allocations: 88.16 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003789/0.0003786, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2334, allocations: 47.58 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1085/0.3419, allocations: 93.27 MB / 469.2 MB, free: 3.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002596/0.3422, allocations: 79.95 kB / 469.3 MB, free: 3.262 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05932/0.4016, allocations: 23.06 MB / 492.3 MB, free: 12.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.719e-06/0.4016, allocations: 3.984 kB / 492.3 MB, free: 12.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.448e-05/0.4017, allocations: 20 kB / 492.4 MB, free: 12.03 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.002371/0.4041, allocations: 1.098 MB / 493.5 MB, free: 10.88 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.4041, allocations: 8.031 kB / 493.5 MB, free: 10.87 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002519/0.4044, allocations: 122.9 kB / 493.6 MB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005818/0.405, allocations: 150.6 kB / 493.7 MB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001449/0.4064, allocations: 0.6874 MB / 494.4 MB, free: 9.863 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.315e-05/0.4065, allocations: 62 kB / 494.5 MB, free: 9.801 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.4067, allocations: 79.91 kB / 494.6 MB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.408, allocations: 0.7715 MB / 495.3 MB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.169e-05/0.4081, allocations: 4 kB / 495.3 MB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.49e-05/0.4082, allocations: 36 kB / 495.4 MB, free: 8.883 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.932e-05/0.4082, allocations: 27.98 kB / 495.4 MB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001071/0.4093, allocations: 0.527 MB / 495.9 MB, free: 8.324 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004599/0.4139, allocations: 3.458 MB / 499.4 MB, free: 4.656 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004724/0.4144, allocations: 247.3 kB / 499.6 MB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.479e-05/0.4144, allocations: 0 / 499.6 MB, free: 4.406 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.4144, allocations: 38.56 kB / 499.7 MB, free: 4.359 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 1.122e-06/0.4144, allocations: 0 / 499.7 MB, free: 4.359 MB / 378.7 MB Notification: Performance of matching and sorting (n=28): time 0.001944/0.4164, allocations: 1.08 MB / 0.489 GB, free: 3.203 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.4164, allocations: 81.34 kB / 0.4891 GB, free: 3.105 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006849/0.4171, allocations: 0.6092 MB / 0.4897 GB, free: 2.492 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.803e-05/0.4172, allocations: 33.7 kB / 0.4897 GB, free: 2.453 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002909/0.4175, allocations: 0.4981 MB / 0.4902 GB, free: 1.949 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.838e-05/0.4175, allocations: 106.5 kB / 0.4903 GB, free: 1.844 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.859e-05/0.4176, allocations: 12 kB / 0.4903 GB, free: 1.832 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.4177, allocations: 386.7 kB / 0.4907 GB, free: 1.445 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002436/0.418, allocations: 125.2 kB / 0.4908 GB, free: 1.324 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003988/0.4184, allocations: 426.2 kB / 0.4912 GB, free: 0.7656 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000322/0.4187, allocations: 200 kB / 0.4914 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.201e-06/0.4187, allocations: 4 kB / 0.4914 GB, free: 0.5664 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.2034/0.6221, allocations: 0.6222 MB / 0.492 GB, free: 98.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/0.6222, allocations: 9.25 kB / 0.492 GB, free: 98.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/0.6223, allocations: 12.06 kB / 0.492 GB, free: 98.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002057/0.6225, allocations: 35.44 kB / 0.4921 GB, free: 98.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006234/0.6231, allocations: 147.7 kB / 0.4922 GB, free: 98.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009143/0.624, allocations: 1.289 MB / 0.4935 GB, free: 97.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006995/0.6247, allocations: 38.56 kB / 0.4935 GB, free: 97.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.564e-05/0.6248, allocations: 30.28 kB / 0.4935 GB, free: 97.75 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.0005153/0.6253, allocations: 237.1 kB / 0.4937 GB, free: 97.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002097/0.6256, allocations: 74.56 kB / 0.4938 GB, free: 97.64 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007984/0.6264, allocations: 343.9 kB / 0.4941 GB, free: 97.57 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.6264, allocations: 5.281 kB / 0.4942 GB, free: 97.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.6264, allocations: 0.8438 kB / 0.4942 GB, free: 97.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.6264, allocations: 1.406 kB / 0.4942 GB, free: 97.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001604/0.628, allocations: 1.1 MB / 0.4952 GB, free: 97.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.628, allocations: 2.281 kB / 0.4952 GB, free: 97.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000309/0.6283, allocations: 64.33 kB / 0.4953 GB, free: 97.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.613e-05/0.6284, allocations: 23.33 kB / 0.4953 GB, free: 97.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.319e-05/0.6285, allocations: 7.312 kB / 0.4953 GB, free: 97.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007498/0.6292, allocations: 1.283 MB / 0.4966 GB, free: 95.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.285e-06/0.6292, allocations: 8.641 kB / 0.4966 GB, free: 95.96 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009991/0.6303, allocations: 0.6551 MB / 0.4972 GB, free: 95.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000206/0.6305, allocations: 173.8 kB / 0.4974 GB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.292e-05/0.6306, allocations: 7.562 kB / 0.4974 GB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003219/0.6309, allocations: 27.5 kB / 0.4974 GB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.63e-05/0.631, allocations: 25.39 kB / 0.4974 GB, free: 95.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.045e-05/0.631, allocations: 7.375 kB / 0.4975 GB, free: 95.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006947/0.6317, allocations: 484.4 kB / 0.4979 GB, free: 95.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6317, allocations: 0 / 0.4979 GB, free: 95.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001176/0.6329, allocations: 196.7 kB / 0.4981 GB, free: 95.45 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.00158/0.6345, allocations: 1.851 MB / 0.4999 GB, free: 94.12 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009124/0.6354, allocations: 487.1 kB / 0.5004 GB, free: 94 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.6354, allocations: 0 / 0.5004 GB, free: 94 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003486/0.6358, allocations: 244 kB / 0.5006 GB, free: 93.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007529/0.6366, allocations: 174.2 kB / 0.5008 GB, free: 93.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007609/0.6442, allocations: 10.77 MB / 0.5113 GB, free: 85.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.6446, allocations: 0.9617 MB / 0.5122 GB, free: 84.86 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003755/0.645, allocations: 94.75 kB / 0.5123 GB, free: 84.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002971/0.6453, allocations: 304.8 kB / 0.5126 GB, free: 84.83 MB / 378.7 MB Notification: Performance of SimCode: time 8.31e-07/0.6453, allocations: 0 / 0.5126 GB, free: 84.83 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0297/0.675, allocations: 16.75 MB / 0.529 GB, free: 82.27 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001717/0.6752, allocations: 218.8 kB / 0.5292 GB, free: 82.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.373/3.049, allocations: 4 kB / 0.5292 GB, free: 82.02 MB / 378.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