Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature",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.001084/0.001084, allocations: 181.4 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.391/1.391, allocations: 205.4 MB / 223.1 MB, free: 9.039 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.0009752/0.0009749, allocations: 101.1 kB / 271.5 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002252/0.0002253, allocations: 4 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2108/0.2111, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1018/0.3129, allocations: 93.85 MB / 469.8 MB, free: 2.777 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.3132, allocations: 87.95 kB / 469.9 MB, free: 2.691 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06131/0.3746, allocations: 23.94 MB / 493.8 MB, free: 10.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3746, allocations: 0 / 493.8 MB, free: 10.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.848e-05/0.3747, allocations: 23.98 kB / 493.8 MB, free: 10.58 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.00185/0.3765, allocations: 1.126 MB / 494.9 MB, free: 9.398 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3766, allocations: 8.031 kB / 495 MB, free: 9.391 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001627/0.3767, allocations: 135.2 kB / 495.1 MB, free: 9.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004844/0.3772, allocations: 150.6 kB / 495.2 MB, free: 9.102 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001223/0.3785, allocations: 0.6757 MB / 495.9 MB, free: 8.387 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.29e-05/0.3785, allocations: 62 kB / 496 MB, free: 8.324 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.3787, allocations: 91.89 kB / 496.1 MB, free: 8.234 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001446/0.3801, allocations: 0.8183 MB / 496.9 MB, free: 7.387 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.806e-05/0.3801, allocations: 7.938 kB / 496.9 MB, free: 7.379 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.729e-05/0.3802, allocations: 36 kB / 496.9 MB, free: 7.344 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.854e-05/0.3802, allocations: 24 kB / 496.9 MB, free: 7.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.3813, allocations: 0.5505 MB / 497.5 MB, free: 6.766 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004512/0.3858, allocations: 3.651 MB / 0.4894 GB, free: 2.871 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/0.3864, allocations: 250.7 kB / 0.4896 GB, free: 2.617 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.183e-05/0.3865, allocations: 7.984 kB / 0.4896 GB, free: 2.609 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.3865, allocations: 34.5 kB / 0.4897 GB, free: 2.566 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.894e-06/0.3865, allocations: 0 / 0.4897 GB, free: 2.566 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.002201/0.3887, allocations: 1.119 MB / 0.4908 GB, free: 1.371 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.3888, allocations: 77.11 kB / 0.4908 GB, free: 1.277 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008865/0.3897, allocations: 0.6956 MB / 0.4915 GB, free: 0.5781 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.183e-05/0.3897, allocations: 33.7 kB / 0.4916 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003442/0.3901, allocations: 0.4983 MB / 0.492 GB, free: 32 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.182/0.572, allocations: 102.4 kB / 0.4921 GB, free: 98.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-05/0.5721, allocations: 11.66 kB / 0.4922 GB, free: 98.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.919e-05/0.5723, allocations: 329.1 kB / 0.4925 GB, free: 98.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004098/0.5727, allocations: 133.9 kB / 0.4926 GB, free: 98.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005386/0.5732, allocations: 426.9 kB / 0.493 GB, free: 98.29 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005392/0.5738, allocations: 207.3 kB / 0.4932 GB, free: 98.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.068e-05/0.5738, allocations: 2.719 kB / 0.4932 GB, free: 98.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001339/0.5751, allocations: 0.6487 MB / 0.4938 GB, free: 98.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.839e-05/0.5752, allocations: 9.5 kB / 0.4938 GB, free: 98.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.19e-05/0.5752, allocations: 9.688 kB / 0.4939 GB, free: 98.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001716/0.5754, allocations: 37.27 kB / 0.4939 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005087/0.5759, allocations: 149.4 kB / 0.494 GB, free: 98.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000756/0.5767, allocations: 1.287 MB / 0.4953 GB, free: 97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006024/0.5773, allocations: 45.31 kB / 0.4953 GB, free: 97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.289e-05/0.5773, allocations: 33.03 kB / 0.4954 GB, free: 97 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 (75): * Single equations (assignments): 74 * 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.0003717/0.5777, allocations: 242.7 kB / 0.4956 GB, free: 96.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.5778, allocations: 80.16 kB / 0.4957 GB, free: 96.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006483/0.5785, allocations: 356.6 kB / 0.496 GB, free: 96.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.5785, allocations: 3.5 kB / 0.496 GB, free: 96.82 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.5785, allocations: 1 kB / 0.496 GB, free: 96.82 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.5785, allocations: 0 / 0.496 GB, free: 96.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001602/0.5801, allocations: 1.117 MB / 0.4971 GB, free: 96.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.5801, allocations: 9.422 kB / 0.4971 GB, free: 96.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002857/0.5804, allocations: 67.83 kB / 0.4972 GB, free: 96.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-05/0.5805, allocations: 23.17 kB / 0.4972 GB, free: 96.44 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.5806, allocations: 10.17 kB / 0.4972 GB, free: 96.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006041/0.5812, allocations: 1.278 MB / 0.4985 GB, free: 95.19 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5812, allocations: 2.781 kB / 0.4985 GB, free: 95.19 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008526/0.582, allocations: 0.6898 MB / 0.4991 GB, free: 94.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002081/0.5823, allocations: 180.8 kB / 0.4993 GB, free: 94.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.009e-05/0.5824, allocations: 10.34 kB / 0.4993 GB, free: 94.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003446/0.5827, allocations: 24.03 kB / 0.4993 GB, free: 94.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.678e-05/0.5828, allocations: 30.72 kB / 0.4994 GB, free: 94.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.5828, allocations: 11 kB / 0.4994 GB, free: 94.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006104/0.5834, allocations: 0.5248 MB / 0.4999 GB, free: 94.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5834, allocations: 2.578 kB / 0.4999 GB, free: 94.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008168/0.5843, allocations: 210.3 kB / 0.5001 GB, free: 94.59 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 (28): * Single equations (assignments): 27 * 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.001415/0.5857, allocations: 1.916 MB / 0.502 GB, free: 93.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008859/0.5866, allocations: 485 kB / 0.5024 GB, free: 93.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.5866, allocations: 1.25 kB / 0.5024 GB, free: 93.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003293/0.5869, allocations: 250.1 kB / 0.5027 GB, free: 92.99 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008527/0.5878, allocations: 212.6 kB / 0.5029 GB, free: 92.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00715/0.595, allocations: 11.1 MB / 0.5137 GB, free: 84.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003814/0.5954, allocations: 0.9725 MB / 0.5147 GB, free: 83.71 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005024/0.5959, allocations: 98.66 kB / 0.5148 GB, free: 83.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003405/0.5962, allocations: 311.2 kB / 0.5151 GB, free: 83.68 MB / 378.7 MB Notification: Performance of SimCode: time 1.833e-06/0.5962, allocations: 0 / 0.5151 GB, free: 83.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0382/0.6345, allocations: 19.21 MB / 0.5338 GB, free: 78.02 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/0.6347, allocations: 214.2 kB / 0.534 GB, free: 77.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.56/3.195, allocations: 3.938 kB / 0.534 GB, free: 77.77 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Temperature.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat does not exist to compare? outputFormat=mat