Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.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.ClockSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample",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.001532/0.001532, allocations: 180.6 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.08/2.08, allocations: 205.2 MB / 219 MB, free: 9.219 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.001102/0.001102, allocations: 95.14 kB / 267.1 MB, free: 9.281 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.1095/0.1095, allocations: 12.58 MB / 327.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.894e-05/3.909e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09906/0.09913, allocations: 50.37 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4372/0.5364, allocations: 78.25 MB / 0.5027 GB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.5367, allocations: 82.52 kB / 0.5027 GB, free: 11.67 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007693/0.5444, allocations: 1.972 MB / 0.5047 GB, free: 11.26 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.5445, allocations: 0 / 0.5047 GB, free: 11.26 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.5445, allocations: 3.844 kB / 0.5047 GB, free: 11.26 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003738/0.5449, allocations: 350.9 kB / 0.505 GB, free: 10.9 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.545, allocations: 7.812 kB / 0.505 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.796e-05/0.545, allocations: 40.41 kB / 0.505 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.126e-05/0.5451, allocations: 7.812 kB / 0.5051 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002062/0.5453, allocations: 194.8 kB / 0.5052 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.5453, allocations: 3.812 kB / 0.5052 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.733e-05/0.5453, allocations: 3.812 kB / 0.5052 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002679/0.5456, allocations: 102.2 kB / 0.5053 GB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.5456, allocations: 4 kB / 0.5053 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.5457, allocations: 3.984 kB / 0.5054 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.733e-06/0.5457, allocations: 3.969 kB / 0.5054 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.664e-05/0.5457, allocations: 10.53 kB / 0.5054 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003676/0.5461, allocations: 270 kB / 0.5056 GB, free: 10.29 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.5462, allocations: 48.25 kB / 0.5057 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.389e-05/0.5463, allocations: 13.66 kB / 0.5057 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.599e-05/0.5463, allocations: 7.031 kB / 0.5057 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.906e-05/0.5463, allocations: 33.62 kB / 0.5057 GB, free: 10.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.743e-06/0.5463, allocations: 0 / 0.5057 GB, free: 10.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001755/0.5465, allocations: 51.2 kB / 0.5058 GB, free: 10.13 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.5466, allocations: 80.16 kB / 0.5058 GB, free: 10.04 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.5467, allocations: 127.9 kB / 0.506 GB, free: 9.945 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.5467, allocations: 25.7 kB / 0.506 GB, free: 9.914 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.39e-05/0.5468, allocations: 94.67 kB / 0.5061 GB, free: 9.828 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.322e-05/0.5468, allocations: 0 / 0.5061 GB, free: 9.828 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.897e-06/0.5468, allocations: 0 / 0.5061 GB, free: 9.828 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.267e-05/0.5469, allocations: 324.1 kB / 0.5064 GB, free: 9.512 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.03e-05/0.5469, allocations: 4.062 kB / 0.5064 GB, free: 9.508 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.641e-05/0.547, allocations: 20.94 kB / 0.5064 GB, free: 9.488 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.839e-05/0.547, allocations: 6.688 kB / 0.5064 GB, free: 9.488 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.547, allocations: 0 / 0.5064 GB, free: 9.488 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.988e-05/0.5471, allocations: 48.42 kB / 0.5065 GB, free: 9.449 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.5471, allocations: 6.125 kB / 0.5065 GB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.5472, allocations: 7.938 kB / 0.5065 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.53e-05/0.5472, allocations: 0 / 0.5065 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.5473, allocations: 3.844 kB / 0.5065 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.657e-06/0.5473, allocations: 2.812 kB / 0.5065 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.735e-05/0.5474, allocations: 7.781 kB / 0.5065 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.074e-05/0.5474, allocations: 11.8 kB / 0.5065 GB, free: 9.434 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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 5.368e-05/0.5475, allocations: 112 kB / 0.5066 GB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.605e-05/0.5475, allocations: 43.98 kB / 0.5067 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.689e-05/0.5476, allocations: 11.12 kB / 0.5067 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.5476, allocations: 3.844 kB / 0.5067 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.5476, allocations: 0 / 0.5067 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.5476, allocations: 0 / 0.5067 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.5478, allocations: 172.1 kB / 0.5068 GB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.5478, allocations: 0 / 0.5068 GB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.735e-05/0.5479, allocations: 6.469 kB / 0.5068 GB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.5479, allocations: 0 / 0.5068 GB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.5479, allocations: 3.906 kB / 0.5068 GB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.5479, allocations: 0 / 0.5068 GB, free: 9.086 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.548, allocations: 4 kB / 0.5068 GB, free: 9.082 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000125/0.5481, allocations: 161.3 kB / 0.507 GB, free: 8.922 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.214e-05/0.5482, allocations: 97.17 kB / 0.5071 GB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.989e-05/0.5482, allocations: 0 / 0.5071 GB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.5e-05/0.5483, allocations: 3.844 kB / 0.5071 GB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.825e-05/0.5483, allocations: 4.031 kB / 0.5071 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.653e-06/0.5484, allocations: 2.484 kB / 0.5071 GB, free: 8.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.839e-05/0.5485, allocations: 108.4 kB / 0.5072 GB, free: 8.742 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5485, allocations: 0 / 0.5072 GB, free: 8.742 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002739/0.5487, allocations: 7.094 kB / 0.5072 GB, free: 8.742 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 (2): * Single equations (assignments): 2 * 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.0003167/0.5491, allocations: 0.7593 MB / 0.508 GB, free: 7.984 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.972e-05/0.5492, allocations: 11.31 kB / 0.508 GB, free: 7.984 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.5492, allocations: 0 / 0.508 GB, free: 7.984 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.44e-05/0.5492, allocations: 7.781 kB / 0.508 GB, free: 7.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.5496, allocations: 21.56 kB / 0.508 GB, free: 7.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000446/0.55, allocations: 136.8 kB / 0.5081 GB, free: 7.84 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.5502, allocations: 0.6901 MB / 0.5088 GB, free: 7.145 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.84e-05/0.5503, allocations: 4 kB / 0.5088 GB, free: 7.141 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.724e-05/0.5504, allocations: 20.98 kB / 0.5088 GB, free: 7.137 MB / 330.7 MB Notification: Performance of SimCode: time 1.072e-06/0.5504, allocations: 0 / 0.5088 GB, free: 7.137 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.5731, allocations: 1.288 MB / 0.5101 GB, free: 6.73 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002599/0.5735, allocations: 172.1 kB / 0.5102 GB, free: 6.508 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.361/2.934, allocations: 4 kB / 0.5102 GB, free: 6.504 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_ClockSignals_SubSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.ClockSignals.SubSample_res.mat does not exist to compare? outputFormat=mat