Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.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: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002225/0.002225, allocations: 181 kB / 13.7 MB, free: 1.625 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.059/2.059, allocations: 205.2 MB / 219.4 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.001041/0.001041, allocations: 90.69 kB / 267.6 MB, free: 14.1 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09949/0.09949, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.089e-05/3.109e-05, allocations: 4 kB / 386 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3012/0.3013, allocations: 50.38 MB / 436.4 MB, free: 14.13 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1381/0.4394, allocations: 77.52 MB / 0.5018 GB, free: 0.5117 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003055/0.4398, allocations: 79.95 kB / 0.5019 GB, free: 444 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003605/0.4434, allocations: 1 MB / 0.5029 GB, free: 15.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.4435, allocations: 3.938 kB / 0.5029 GB, free: 15.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.4435, allocations: 0 / 0.5029 GB, free: 15.43 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004166/0.4439, allocations: 338.5 kB / 0.5032 GB, free: 15.05 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.444, allocations: 8.031 kB / 0.5032 GB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.157e-05/0.444, allocations: 7.906 kB / 0.5032 GB, free: 15.04 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002458/0.4443, allocations: 186.8 kB / 0.5034 GB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.4443, allocations: 0 / 0.5034 GB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.837e-05/0.4443, allocations: 11.95 kB / 0.5034 GB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002288/0.4446, allocations: 85.06 kB / 0.5035 GB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.4446, allocations: 0 / 0.5035 GB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.879e-06/0.4446, allocations: 0 / 0.5035 GB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.4446, allocations: 0 / 0.5035 GB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.978e-05/0.4447, allocations: 8 kB / 0.5035 GB, free: 14.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003884/0.4451, allocations: 261.7 kB / 0.5038 GB, free: 14.39 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.642e-05/0.4452, allocations: 41.16 kB / 0.5038 GB, free: 14.33 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.151e-05/0.4452, allocations: 13.84 kB / 0.5038 GB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.4452, allocations: 0 / 0.5038 GB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.4453, allocations: 42.5 kB / 0.5038 GB, free: 14.26 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.523e-06/0.4453, allocations: 0 / 0.5038 GB, free: 14.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001724/0.4455, allocations: 41.69 kB / 0.5039 GB, free: 14.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.659e-05/0.4456, allocations: 81.05 kB / 0.504 GB, free: 14.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.4457, allocations: 125.7 kB / 0.5041 GB, free: 13.98 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.4457, allocations: 25.7 kB / 0.5041 GB, free: 13.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.303e-05/0.4458, allocations: 150.6 kB / 0.5042 GB, free: 13.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.027e-06/0.4458, allocations: 4 kB / 0.5043 GB, free: 13.8 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-06/0.4459, allocations: 0 / 0.5043 GB, free: 13.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.446, allocations: 314.9 kB / 0.5046 GB, free: 13.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.41e-05/0.446, allocations: 7.938 kB / 0.5046 GB, free: 13.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.543e-05/0.4461, allocations: 13.72 kB / 0.5046 GB, free: 13.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.332e-05/0.4461, allocations: 7.984 kB / 0.5046 GB, free: 13.45 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.4461, allocations: 3.953 kB / 0.5046 GB, free: 13.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.183e-05/0.4462, allocations: 41.64 kB / 0.5046 GB, free: 13.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.4462, allocations: 4 kB / 0.5046 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.4463, allocations: 8.125 kB / 0.5046 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.4463, allocations: 0 / 0.5046 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.691e-05/0.4463, allocations: 0 / 0.5046 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.4463, allocations: 0 / 0.5046 GB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.493e-05/0.4464, allocations: 7.984 kB / 0.5046 GB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.4464, allocations: 0 / 0.5046 GB, free: 13.38 MB / 362.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: 2 (sample.u,sample.y) * 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 7.931e-05/0.4465, allocations: 109.8 kB / 0.5047 GB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.025e-05/0.4466, allocations: 49.5 kB / 0.5048 GB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.739e-05/0.4466, allocations: 11.69 kB / 0.5048 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.4467, allocations: 0 / 0.5048 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.4467, allocations: 0 / 0.5048 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.4467, allocations: 3.984 kB / 0.5048 GB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002215/0.4469, allocations: 169.7 kB / 0.505 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.4469, allocations: 0 / 0.505 GB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.322e-05/0.4469, allocations: 7.953 kB / 0.505 GB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.447, allocations: 0 / 0.505 GB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.447, allocations: 0 / 0.505 GB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.447, allocations: 0 / 0.505 GB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.447, allocations: 0 / 0.505 GB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001635/0.4472, allocations: 166.1 kB / 0.5051 GB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.294e-05/0.4473, allocations: 89 kB / 0.5052 GB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.838e-05/0.4473, allocations: 0 / 0.5052 GB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.28e-05/0.4474, allocations: 3.938 kB / 0.5052 GB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.694e-05/0.4474, allocations: 4 kB / 0.5052 GB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.4475, allocations: 8.016 kB / 0.5052 GB, free: 12.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001005/0.4476, allocations: 102.2 kB / 0.5053 GB, free: 12.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4476, allocations: 0 / 0.5053 GB, free: 12.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002779/0.4479, allocations: 0 / 0.5053 GB, free: 12.57 MB / 362.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: 2 (sample.u,sample.y) * 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.0001179/0.448, allocations: 99.23 kB / 0.5054 GB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.359e-05/0.4481, allocations: 8 kB / 0.5054 GB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.4481, allocations: 4 kB / 0.5054 GB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.956e-05/0.4481, allocations: 4.062 kB / 0.5054 GB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002746/0.4484, allocations: 20.03 kB / 0.5055 GB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002979/0.4487, allocations: 127.2 kB / 0.5056 GB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000323/0.4491, allocations: 0.6887 MB / 0.5063 GB, free: 11.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.188e-05/0.4491, allocations: 11.44 kB / 0.5063 GB, free: 11.54 MB / 362.7 MB Notification: Performance of SimCode: time 9.52e-07/0.4491, allocations: 0 / 0.5063 GB, free: 11.54 MB / 362.7 MB Notification: Performance of Templates: time 0.002387/0.4515, allocations: 0.6054 MB / 0.5069 GB, free: 10.94 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches