Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_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.001378/0.001378, allocations: 172.9 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.364/1.364, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008272/0.0008273, allocations: 82.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.348e-05/2.349e-05, allocations: 4 kB / 322.6 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07743/0.07747, allocations: 47.57 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3044/0.3819, allocations: 97.45 MB / 467.6 MB, free: 12.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002302/0.3822, allocations: 83.95 kB / 467.7 MB, free: 12.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07156/0.4538, allocations: 28.19 MB / 495.8 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4538, allocations: 0 / 495.8 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.677e-05/0.4539, allocations: 24.66 kB / 495.9 MB, free: 0.8633 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.001661/0.4556, allocations: 1.115 MB / 497 MB, free: 15.7 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.4556, allocations: 12.03 kB / 497 MB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001602/0.4558, allocations: 148.2 kB / 497.1 MB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005981/0.4564, allocations: 182.4 kB / 497.3 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001314/0.4577, allocations: 0.7886 MB / 498.1 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.822e-05/0.4578, allocations: 70 kB / 498.2 MB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.4579, allocations: 111.8 kB / 498.3 MB, free: 14.35 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.4593, allocations: 0.888 MB / 499.2 MB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/0.4594, allocations: 4 kB / 499.2 MB, free: 13.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.326e-05/0.4594, allocations: 40 kB / 499.2 MB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.4595, allocations: 24 kB / 499.2 MB, free: 13.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009737/0.4604, allocations: 0.5897 MB / 499.8 MB, free: 12.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004931/0.4654, allocations: 3.923 MB / 0.4919 GB, free: 8.629 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006063/0.466, allocations: 432.3 kB / 0.4924 GB, free: 8.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004716/0.4665, allocations: 246.4 kB / 0.4926 GB, free: 7.938 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.214e-05/0.4666, allocations: 7.781 kB / 0.4926 GB, free: 7.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.859e-05/0.4666, allocations: 38.56 kB / 0.4926 GB, free: 7.883 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 3.617e-06/0.4666, allocations: 0 / 0.4926 GB, free: 7.883 MB / 378.7 MB Notification: Performance of matching and sorting (n=47): time 0.002171/0.4688, allocations: 1.195 MB / 0.4938 GB, free: 6.621 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.215e-05/0.4689, allocations: 85.55 kB / 0.4939 GB, free: 6.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009556/0.4699, allocations: 0.6879 MB / 0.4946 GB, free: 5.828 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.444e-05/0.4699, allocations: 29.7 kB / 0.4946 GB, free: 5.793 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003997/0.4703, allocations: 0.5527 MB / 0.4951 GB, free: 5.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001263/0.4704, allocations: 177.5 kB / 0.4953 GB, free: 5.055 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.63e-05/0.4705, allocations: 16 kB / 0.4953 GB, free: 5.039 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.4706, allocations: 337.9 kB / 0.4956 GB, free: 4.703 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.4709, allocations: 157.5 kB / 0.4958 GB, free: 4.551 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004509/0.4714, allocations: 446 kB / 0.4962 GB, free: 3.977 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003683/0.4717, allocations: 229.5 kB / 0.4964 GB, free: 3.754 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.4718, allocations: 4 kB / 0.4964 GB, free: 3.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001239/0.473, allocations: 0.7546 MB / 0.4972 GB, free: 2.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.473, allocations: 8 kB / 0.4972 GB, free: 2.973 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/0.4731, allocations: 16 kB / 0.4972 GB, free: 2.957 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000304/0.4734, allocations: 101.9 kB / 0.4973 GB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005028/0.4739, allocations: 155.8 kB / 0.4974 GB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002497/0.4764, allocations: 2.989 MB / 0.5004 GB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006227/0.477, allocations: 40.05 kB / 0.5004 GB, free: 15.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.631e-05/0.4771, allocations: 36 kB / 0.5004 GB, free: 15.37 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 83 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001616/0.4773, allocations: 149.6 kB / 0.5006 GB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.4774, allocations: 86.97 kB / 0.5007 GB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008861/0.4783, allocations: 494.5 kB / 0.5011 GB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.4783, allocations: 7.953 kB / 0.5011 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.4783, allocations: 0 / 0.5011 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.4783, allocations: 3.984 kB / 0.5011 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002021/0.4803, allocations: 1.439 MB / 0.5025 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.272e-06/0.4804, allocations: 4 kB / 0.5025 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003127/0.4807, allocations: 71.91 kB / 0.5026 GB, free: 13.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002308/0.4809, allocations: 85.92 kB / 0.5027 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.572e-05/0.481, allocations: 19.88 kB / 0.5027 GB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002278/0.4832, allocations: 2.974 MB / 0.5056 GB, free: 9.672 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4833, allocations: 0 / 0.5056 GB, free: 9.672 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.4843, allocations: 0.8516 MB / 0.5065 GB, free: 8.73 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002905/0.4846, allocations: 196 kB / 0.5066 GB, free: 8.52 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.901e-05/0.4847, allocations: 15.98 kB / 0.5067 GB, free: 8.504 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003931/0.4851, allocations: 32.05 kB / 0.5067 GB, free: 8.473 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.854e-05/0.4852, allocations: 35.95 kB / 0.5067 GB, free: 8.438 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/0.4852, allocations: 19.94 kB / 0.5067 GB, free: 8.418 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007062/0.486, allocations: 0.5187 MB / 0.5072 GB, free: 7.902 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.486, allocations: 4 kB / 0.5072 GB, free: 7.898 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009113/0.4869, allocations: 240 kB / 0.5075 GB, free: 7.664 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 37 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001851/0.4887, allocations: 2.08 MB / 0.5095 GB, free: 5.508 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001055/0.4898, allocations: 0.6685 MB / 0.5102 GB, free: 4.816 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.4898, allocations: 0 / 0.5102 GB, free: 4.816 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005777/0.4904, allocations: 453.5 kB / 0.5106 GB, free: 4.348 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.4914, allocations: 203.3 kB / 0.5108 GB, free: 4.148 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.4942, allocations: 1.421 MB / 0.5122 GB, free: 2.664 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005308/0.4947, allocations: 1.028 MB / 0.5132 GB, free: 1.609 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004529/0.4952, allocations: 115.4 kB / 0.5133 GB, free: 1.492 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00044/0.4956, allocations: 375.3 kB / 0.5136 GB, free: 1.125 MB / 394.7 MB Notification: Performance of SimCode: time 6.62e-07/0.4956, allocations: 0 / 0.5136 GB, free: 1.125 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2202/0.7158, allocations: 20.63 MB / 0.5338 GB, free: 117.2 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001255/0.7159, allocations: 194.3 kB / 0.534 GB, free: 116.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.6/3.316, allocations: 0 / 0.534 GB, free: 116.9 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_Start.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat does not exist to compare? outputFormat=mat