Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.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.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold",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.002351/0.002351, allocations: 177.7 kB / 8.045 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.619/2.619, allocations: 205.3 MB / 213.8 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 90.16 kB / 261.8 MB, free: 1.68 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.1159/0.1159, allocations: 12.6 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/3.01e-05, allocations: 4 kB / 379 MB, free: 6.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4265/0.4266, allocations: 50.37 MB / 429.4 MB, free: 18.23 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.152/0.5787, allocations: 81.27 MB / 0.4987 GB, free: 0.8438 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000355/0.5791, allocations: 83.95 kB / 0.4988 GB, free: 0.7617 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02873/0.6078, allocations: 6.011 MB / 0.5047 GB, free: 10.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.6079, allocations: 7.938 kB / 0.5047 GB, free: 10.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.4e-05/0.608, allocations: 11.98 kB / 0.5047 GB, free: 10.73 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009168/0.6089, allocations: 496.6 kB / 0.5052 GB, free: 10.19 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.7e-05/0.609, allocations: 8.031 kB / 0.5052 GB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.6091, allocations: 27.72 kB / 0.5052 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007122/0.6098, allocations: 290.4 kB / 0.5055 GB, free: 9.832 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.086e-05/0.6099, allocations: 3.953 kB / 0.5055 GB, free: 9.828 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.556e-05/0.6099, allocations: 11.94 kB / 0.5055 GB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001794/0.6101, allocations: 43.98 kB / 0.5055 GB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004132/0.6106, allocations: 164.4 kB / 0.5057 GB, free: 9.582 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.6106, allocations: 0 / 0.5057 GB, free: 9.582 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.123e-05/0.6106, allocations: 0 / 0.5057 GB, free: 9.582 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.6107, allocations: 8 kB / 0.5057 GB, free: 9.574 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009293/0.6116, allocations: 455.1 kB / 0.5061 GB, free: 9.082 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002886/0.6119, allocations: 134.5 kB / 0.5062 GB, free: 8.914 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001241/0.6121, allocations: 55.48 kB / 0.5063 GB, free: 8.848 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.682e-05/0.6121, allocations: 4 kB / 0.5063 GB, free: 8.844 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002406/0.6124, allocations: 93.05 kB / 0.5064 GB, free: 8.734 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 2.975e-06/0.6124, allocations: 4 kB / 0.5064 GB, free: 8.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004793/0.6129, allocations: 129.3 kB / 0.5065 GB, free: 8.598 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/0.613, allocations: 188 kB / 0.5067 GB, free: 8.371 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005495/0.6136, allocations: 294.2 kB / 0.507 GB, free: 8.082 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.6136, allocations: 25.7 kB / 0.507 GB, free: 8.051 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.6138, allocations: 124.4 kB / 0.5071 GB, free: 7.922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.821e-05/0.6139, allocations: 15.81 kB / 0.5071 GB, free: 7.906 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.936e-06/0.6139, allocations: 3.938 kB / 0.5071 GB, free: 7.902 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.6141, allocations: 334.8 kB / 0.5075 GB, free: 7.566 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.657e-05/0.6141, allocations: 24 kB / 0.5075 GB, free: 7.543 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.6143, allocations: 103.6 kB / 0.5076 GB, free: 7.414 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.6145, allocations: 39.94 kB / 0.5076 GB, free: 7.375 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.6145, allocations: 0 / 0.5076 GB, free: 7.375 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003391/0.6148, allocations: 121.3 kB / 0.5077 GB, free: 7.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.6149, allocations: 8 kB / 0.5077 GB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.6149, allocations: 0 / 0.5077 GB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.192e-05/0.6149, allocations: 4 kB / 0.5077 GB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002297/0.6152, allocations: 23.98 kB / 0.5078 GB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.6152, allocations: 4 kB / 0.5078 GB, free: 7.211 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.6153, allocations: 12.09 kB / 0.5078 GB, free: 7.199 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.6154, allocations: 7.984 kB / 0.5078 GB, free: 7.191 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample.u,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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 0.0001412/0.6155, allocations: 112.9 kB / 0.5079 GB, free: 7.074 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003342/0.6159, allocations: 125.3 kB / 0.508 GB, free: 6.945 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.428e-05/0.6159, allocations: 27.66 kB / 0.508 GB, free: 6.918 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003613/0.6163, allocations: 127.5 kB / 0.5082 GB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.6163, allocations: 96 / 0.5082 GB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.6164, allocations: 4 kB / 0.5082 GB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.655e-06/0.6164, allocations: 8.031 kB / 0.5082 GB, free: 6.773 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003497/0.6167, allocations: 226.1 kB / 0.5084 GB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.6168, allocations: 0 / 0.5084 GB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001533/0.6169, allocations: 16 kB / 0.5084 GB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.553e-06/0.6169, allocations: 3.938 kB / 0.5084 GB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.617, allocations: 12.17 kB / 0.5084 GB, free: 6.484 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.811e-06/0.617, allocations: 4 kB / 0.5084 GB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.617, allocations: 0 / 0.5084 GB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004108/0.6174, allocations: 212.4 kB / 0.5086 GB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002077/0.6176, allocations: 124.8 kB / 0.5088 GB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.873e-05/0.6177, allocations: 0 / 0.5088 GB, free: 6.086 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000164/0.6179, allocations: 8 kB / 0.5088 GB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.885e-05/0.618, allocations: 15.94 kB / 0.5088 GB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.284e-05/0.618, allocations: 7.984 kB / 0.5088 GB, free: 6.055 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003883/0.6184, allocations: 226 kB / 0.509 GB, free: 5.832 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6184, allocations: 3.938 kB / 0.509 GB, free: 5.828 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004976/0.6189, allocations: 47.94 kB / 0.509 GB, free: 5.781 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002001/0.6209, allocations: 1.214 MB / 0.5102 GB, free: 4.527 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004045/0.6214, allocations: 95.77 kB / 0.5103 GB, free: 4.434 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.6214, allocations: 0 / 0.5103 GB, free: 4.434 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.6216, allocations: 39.98 kB / 0.5104 GB, free: 4.395 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006157/0.6222, allocations: 55.86 kB / 0.5104 GB, free: 4.344 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001186/0.6234, allocations: 366.4 kB / 0.5108 GB, free: 3.938 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005527/0.624, allocations: 0.7516 MB / 0.5115 GB, free: 3.156 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002686/0.6243, allocations: 37.98 kB / 0.5115 GB, free: 3.121 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001968/0.6245, allocations: 63.41 kB / 0.5116 GB, free: 3.062 MB / 362.7 MB Notification: Performance of SimCode: time 1.402e-06/0.6245, allocations: 0 / 0.5116 GB, free: 3.062 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3352/0.9597, allocations: 4.417 MB / 0.5159 GB, free: 88.6 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002391/0.96, allocations: 183.9 kB / 0.5161 GB, free: 88.41 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.55/3.51, allocations: 1.094 kB / 0.5161 GB, free: 88.41 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat does not exist to compare? outputFormat=mat