Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) 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_Synchronous.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample1",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.001527/0.001527, allocations: 181 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.359/2.359, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001219/0.001219, allocations: 97.11 kB / 261.8 MB, free: 13.45 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1094/0.1094, allocations: 12.59 MB / 322.3 MB, free: 0.793 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.079e-05/2.094e-05, allocations: 4 kB / 379 MB, free: 75.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09786/0.09791, allocations: 50.38 MB / 429.4 MB, free: 24.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4656/0.5636, allocations: 77.73 MB / 0.4953 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/0.5639, allocations: 77.73 kB / 0.4953 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005369/0.5693, allocations: 1.398 MB / 0.4967 GB, free: 11.61 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.777e-06/0.5694, allocations: 0.8438 kB / 0.4967 GB, free: 11.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.5694, allocations: 7.938 kB / 0.4967 GB, free: 11.6 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004062/0.5698, allocations: 358.9 kB / 0.4971 GB, free: 11.24 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.5699, allocations: 11.34 kB / 0.4971 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.57, allocations: 7.781 kB / 0.4971 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002175/0.5702, allocations: 189 kB / 0.4973 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.5702, allocations: 7.922 kB / 0.4973 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.673e-05/0.5702, allocations: 0 / 0.4973 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.848e-05/0.5704, allocations: 18.81 kB / 0.4973 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.5706, allocations: 107 kB / 0.4974 GB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.5706, allocations: 3.984 kB / 0.4974 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.202e-05/0.5707, allocations: 3.938 kB / 0.4974 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.5707, allocations: 0 / 0.4974 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003807/0.5711, allocations: 253.2 kB / 0.4976 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000187/0.5713, allocations: 131.2 kB / 0.4978 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.014e-05/0.5713, allocations: 23.36 kB / 0.4978 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.5714, allocations: 0 / 0.4978 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.993e-05/0.5714, allocations: 41.03 kB / 0.4978 GB, free: 10.49 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.823e-06/0.5714, allocations: 0 / 0.4978 GB, free: 10.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001857/0.5716, allocations: 54.67 kB / 0.4979 GB, free: 10.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.5717, allocations: 83.66 kB / 0.4979 GB, free: 10.36 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.5718, allocations: 114.4 kB / 0.4981 GB, free: 10.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.048e-05/0.5718, allocations: 25.7 kB / 0.4981 GB, free: 10.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.549e-05/0.5719, allocations: 93.08 kB / 0.4982 GB, free: 10.15 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.481e-05/0.5719, allocations: 0 / 0.4982 GB, free: 10.15 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-06/0.5719, allocations: 4.031 kB / 0.4982 GB, free: 10.15 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.885e-05/0.572, allocations: 316.8 kB / 0.4985 GB, free: 9.836 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.105e-05/0.572, allocations: 3.875 kB / 0.4985 GB, free: 9.836 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.541e-05/0.5721, allocations: 30.62 kB / 0.4985 GB, free: 9.801 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.118e-05/0.5721, allocations: 12.84 kB / 0.4985 GB, free: 9.797 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.5721, allocations: 0 / 0.4985 GB, free: 9.797 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001083/0.5722, allocations: 62.84 kB / 0.4986 GB, free: 9.754 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.5723, allocations: 3.875 kB / 0.4986 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.301e-06/0.5723, allocations: 0 / 0.4986 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.5723, allocations: 3.781 kB / 0.4986 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001121/0.5724, allocations: 10.86 kB / 0.4986 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.5724, allocations: 0.625 kB / 0.4986 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.729e-05/0.5725, allocations: 10.73 kB / 0.4986 GB, free: 9.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.669e-06/0.5725, allocations: 3.906 kB / 0.4986 GB, free: 9.75 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.26e-05/0.5726, allocations: 108.9 kB / 0.4987 GB, free: 9.637 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001147/0.5727, allocations: 59.11 kB / 0.4988 GB, free: 9.594 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.404e-05/0.5728, allocations: 11.06 kB / 0.4988 GB, free: 9.59 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.323e-05/0.5728, allocations: 10.34 kB / 0.4988 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.5728, allocations: 0 / 0.4988 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.5729, allocations: 3.844 kB / 0.4988 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.5729, allocations: 0 / 0.4988 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000191/0.5731, allocations: 153.7 kB / 0.4989 GB, free: 9.418 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.5731, allocations: 3.953 kB / 0.4989 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.761e-05/0.5732, allocations: 14.11 kB / 0.499 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.94e-06/0.5732, allocations: 3.844 kB / 0.499 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.5732, allocations: 0 / 0.499 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.5732, allocations: 2.062 kB / 0.499 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.5732, allocations: 0 / 0.499 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.5734, allocations: 176.1 kB / 0.4991 GB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.242e-05/0.5735, allocations: 93.14 kB / 0.4992 GB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.5735, allocations: 3.984 kB / 0.4992 GB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.5736, allocations: 3.969 kB / 0.4992 GB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.919e-05/0.5737, allocations: 2.438 kB / 0.4992 GB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.313e-06/0.5737, allocations: 3.875 kB / 0.4992 GB, free: 9.145 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.854e-05/0.5738, allocations: 99.44 kB / 0.4993 GB, free: 9.07 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5738, allocations: 0 / 0.4993 GB, free: 9.07 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003175/0.5741, allocations: 13.98 kB / 0.4993 GB, free: 9.066 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003414/0.5745, allocations: 0.7701 MB / 0.5001 GB, free: 8.309 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001128/0.5746, allocations: 21.52 kB / 0.5001 GB, free: 8.305 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5746, allocations: 4.062 kB / 0.5001 GB, free: 8.301 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.173e-05/0.5746, allocations: 3.844 kB / 0.5001 GB, free: 8.301 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.575, allocations: 23.09 kB / 0.5001 GB, free: 8.297 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004848/0.5755, allocations: 129.2 kB / 0.5003 GB, free: 8.172 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001809/0.5757, allocations: 0.6988 MB / 0.501 GB, free: 7.473 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.748e-05/0.5757, allocations: 4.062 kB / 0.501 GB, free: 7.469 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.28e-05/0.5758, allocations: 18.66 kB / 0.501 GB, free: 7.461 MB / 330.7 MB Notification: Performance of SimCode: time 9.51e-07/0.5758, allocations: 0 / 0.501 GB, free: 7.461 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03756/0.6134, allocations: 0.9869 MB / 0.5019 GB, free: 7.375 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002126/0.6137, allocations: 152.8 kB / 0.5021 GB, free: 7.188 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.36/2.974, allocations: 0 / 0.5021 GB, free: 7.188 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample1_res.mat does not exist to compare? outputFormat=mat