Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary",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.001485/0.001485, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.357/1.357, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0007945/0.0007945, allocations: 90.7 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.742e-05/2.744e-05, allocations: 7.938 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1237, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3292/0.4529, allocations: 94.47 MB / 464.6 MB, free: 15.07 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002127/0.4532, allocations: 83.89 kB / 464.7 MB, free: 15.03 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1084/0.5616, allocations: 40.8 MB / 0.4936 GB, free: 7.141 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5617, allocations: 0 / 0.4936 GB, free: 7.141 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.66e-05/0.5618, allocations: 35.94 kB / 0.4937 GB, free: 7.105 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002399/0.5642, allocations: 1.558 MB / 0.4952 GB, free: 5.484 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.5642, allocations: 8.031 kB / 0.4952 GB, free: 5.477 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002602/0.5645, allocations: 223.8 kB / 0.4954 GB, free: 5.246 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007442/0.5652, allocations: 261.6 kB / 0.4957 GB, free: 4.988 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.5671, allocations: 1.09 MB / 0.4967 GB, free: 3.852 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.85e-05/0.5672, allocations: 119.1 kB / 0.4968 GB, free: 3.734 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002054/0.5674, allocations: 155.9 kB / 0.497 GB, free: 3.582 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002282/0.5697, allocations: 1.429 MB / 0.4984 GB, free: 2.078 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.742e-05/0.5697, allocations: 15.89 kB / 0.4984 GB, free: 2.062 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.5699, allocations: 60 kB / 0.4984 GB, free: 2.004 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.869e-05/0.5699, allocations: 40 kB / 0.4985 GB, free: 1.965 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001596/0.5715, allocations: 0.9125 MB / 0.4994 GB, free: 1.047 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007772/0.5793, allocations: 6.652 MB / 0.5059 GB, free: 10.04 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005814/0.5799, allocations: 364.2 kB / 0.5062 GB, free: 9.672 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003146/0.5802, allocations: 210.2 kB / 0.5064 GB, free: 9.465 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.693e-05/0.5803, allocations: 8.422 kB / 0.5064 GB, free: 9.457 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004058/0.5807, allocations: 261.6 kB / 0.5067 GB, free: 9.176 MB / 394.7 MB Notification: Performance of pre-optimization done (n=50): time 2.315e-06/0.5807, allocations: 0 / 0.5067 GB, free: 9.176 MB / 394.7 MB Notification: Performance of matching and sorting (n=56): time 0.002423/0.5831, allocations: 1.612 MB / 0.5083 GB, free: 7.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/0.5833, allocations: 192.4 kB / 0.5084 GB, free: 7.27 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/0.5846, allocations: 1.065 MB / 0.5095 GB, free: 6.191 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.756e-05/0.5847, allocations: 37.7 kB / 0.5095 GB, free: 6.148 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005843/0.5853, allocations: 0.8711 MB / 0.5104 GB, free: 5.266 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001351/0.5854, allocations: 205.1 kB / 0.5106 GB, free: 5.062 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.509e-05/0.5855, allocations: 24 kB / 0.5106 GB, free: 5.039 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.5856, allocations: 354 kB / 0.5109 GB, free: 4.688 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003368/0.5859, allocations: 210.6 kB / 0.5111 GB, free: 4.484 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006749/0.5866, allocations: 0.7801 MB / 0.5119 GB, free: 3.418 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005146/0.5871, allocations: 388.7 kB / 0.5123 GB, free: 3.031 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.5872, allocations: 8 kB / 0.5123 GB, free: 3.023 MB / 394.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001645/0.5888, allocations: 1.137 MB / 0.5134 GB, free: 1.867 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.773e-05/0.5889, allocations: 44.81 kB / 0.5134 GB, free: 1.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.5889, allocations: 20.75 kB / 0.5134 GB, free: 1.801 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002169/0.5891, allocations: 73.7 kB / 0.5135 GB, free: 1.723 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007786/0.5899, allocations: 267.5 kB / 0.5138 GB, free: 1.461 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001721/0.5916, allocations: 2.568 MB / 0.5163 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008272/0.5925, allocations: 75.88 kB / 0.5163 GB, free: 14.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-05/0.5926, allocations: 64.05 kB / 0.5164 GB, free: 14.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002009/0.5928, allocations: 193.3 kB / 0.5166 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001404/0.5929, allocations: 142.2 kB / 0.5167 GB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008598/0.5938, allocations: 0.5058 MB / 0.5172 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.5938, allocations: 7.953 kB / 0.5172 GB, free: 13.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.5938, allocations: 3.984 kB / 0.5172 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.5938, allocations: 8 kB / 0.5172 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002529/0.5964, allocations: 1.885 MB / 0.5191 GB, free: 11.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/0.5964, allocations: 8.031 kB / 0.5191 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004529/0.5968, allocations: 115.8 kB / 0.5192 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001302/0.597, allocations: 37.7 kB / 0.5192 GB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.134e-05/0.597, allocations: 16 kB / 0.5192 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/0.5987, allocations: 2.55 MB / 0.5217 GB, free: 8.613 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.5987, allocations: 7.938 kB / 0.5217 GB, free: 8.605 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.5999, allocations: 1.075 MB / 0.5228 GB, free: 7.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004007/0.6003, allocations: 255.3 kB / 0.523 GB, free: 7.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.6005, allocations: 20.11 kB / 0.5231 GB, free: 7.051 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005101/0.601, allocations: 35.98 kB / 0.5231 GB, free: 7.016 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.6011, allocations: 59.83 kB / 0.5231 GB, free: 6.957 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.054e-05/0.6011, allocations: 19.98 kB / 0.5232 GB, free: 6.938 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001064/0.6022, allocations: 0.7897 MB / 0.5239 GB, free: 6.145 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6022, allocations: 0 / 0.5239 GB, free: 6.145 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001095/0.6033, allocations: 344 kB / 0.5243 GB, free: 5.809 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002121/0.6054, allocations: 2.834 MB / 0.527 GB, free: 2.844 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.6068, allocations: 0.8862 MB / 0.5279 GB, free: 1.922 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.6068, allocations: 0.8125 kB / 0.5279 GB, free: 1.922 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005641/0.6074, allocations: 453.4 kB / 0.5283 GB, free: 1.453 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001276/0.6087, allocations: 313.5 kB / 0.5286 GB, free: 1.148 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1948/0.8035, allocations: 2.123 MB / 0.5307 GB, free: 108.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008282/0.8043, allocations: 1.213 MB / 0.5319 GB, free: 107.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007717/0.8051, allocations: 173.1 kB / 0.5321 GB, free: 107.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007981/0.8059, allocations: 0.5862 MB / 0.5326 GB, free: 107.8 MB / 410.7 MB Notification: Performance of SimCode: time 1.012e-06/0.8059, allocations: 0 / 0.5326 GB, free: 107.8 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05331/0.8592, allocations: 28.42 MB / 0.5604 GB, free: 106.1 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001715/0.8595, allocations: 204 kB / 0.5606 GB, free: 105.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.752/3.612, allocations: 0 / 0.5606 GB, free: 105.9 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_QuasiStationary.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_res.mat does not exist to compare? outputFormat=mat