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.001462/0.001462, allocations: 177.8 kB / 8.403 MB, free: 0.6719 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.05/2.05, allocations: 205.3 MB / 214.1 MB, free: 1.668 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.002895/0.002895, allocations: 87.94 kB / 262.1 MB, free: 1.613 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.101/0.101, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.586e-05/2.614e-05, allocations: 0 / 378.9 MB, free: 6.887 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3159/0.3159, allocations: 50.36 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1383/0.4543, allocations: 76.86 MB / 0.4943 GB, free: 5.453 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000293/0.4546, allocations: 75.95 kB / 0.4944 GB, free: 5.379 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003509/0.4582, allocations: 0.9932 MB / 0.4953 GB, free: 4.387 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.078e-06/0.4582, allocations: 0 / 0.4953 GB, free: 4.387 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.969e-06/0.4582, allocations: 3.938 kB / 0.4953 GB, free: 4.383 MB / 346.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.0003607/0.4586, allocations: 334.5 kB / 0.4956 GB, free: 4.012 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.4586, allocations: 12.03 kB / 0.4957 GB, free: 4 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.247e-05/0.4587, allocations: 7.906 kB / 0.4957 GB, free: 3.992 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.4589, allocations: 190.8 kB / 0.4958 GB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.459, allocations: 4 kB / 0.4958 GB, free: 3.762 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.459, allocations: 3.953 kB / 0.4959 GB, free: 3.758 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.605e-05/0.4591, allocations: 12 kB / 0.4959 GB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001904/0.4593, allocations: 77.06 kB / 0.4959 GB, free: 3.652 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.4593, allocations: 4 kB / 0.4959 GB, free: 3.648 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.4593, allocations: 0 / 0.4959 GB, free: 3.648 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.4593, allocations: 0 / 0.4959 GB, free: 3.648 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000346/0.4597, allocations: 242.3 kB / 0.4962 GB, free: 3.371 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.719e-05/0.4598, allocations: 37.09 kB / 0.4962 GB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.212e-05/0.4598, allocations: 21.84 kB / 0.4962 GB, free: 3.289 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.4598, allocations: 0 / 0.4962 GB, free: 3.289 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.553e-05/0.4599, allocations: 30.56 kB / 0.4963 GB, free: 3.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.392e-06/0.4599, allocations: 0 / 0.4963 GB, free: 3.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001618/0.46, allocations: 37.64 kB / 0.4963 GB, free: 3.207 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.4601, allocations: 89.17 kB / 0.4964 GB, free: 3.102 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.4603, allocations: 122.4 kB / 0.4965 GB, free: 2.977 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.618e-05/0.4603, allocations: 25.7 kB / 0.4965 GB, free: 2.945 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.024e-05/0.4604, allocations: 150.6 kB / 0.4967 GB, free: 2.797 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.065e-06/0.4604, allocations: 3.938 kB / 0.4967 GB, free: 2.793 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.975e-06/0.4604, allocations: 0 / 0.4967 GB, free: 2.793 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002109/0.4607, allocations: 318.8 kB / 0.497 GB, free: 2.473 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.285e-05/0.4607, allocations: 0 / 0.497 GB, free: 2.473 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.338e-05/0.4607, allocations: 17.72 kB / 0.497 GB, free: 2.449 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.693e-05/0.4607, allocations: 0 / 0.497 GB, free: 2.449 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.4608, allocations: 0 / 0.497 GB, free: 2.449 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.679e-05/0.4609, allocations: 49.58 kB / 0.497 GB, free: 2.395 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.4609, allocations: 8 kB / 0.497 GB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4609, allocations: 0 / 0.497 GB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.4609, allocations: 0 / 0.497 GB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.633e-05/0.4609, allocations: 0 / 0.497 GB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.461, allocations: 4.125 kB / 0.497 GB, free: 2.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.364e-05/0.461, allocations: 4 kB / 0.4971 GB, free: 2.379 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-06/0.461, allocations: 0 / 0.4971 GB, free: 2.379 MB / 346.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 8.758e-05/0.4611, allocations: 105 kB / 0.4972 GB, free: 2.27 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.93e-05/0.4612, allocations: 45.48 kB / 0.4972 GB, free: 2.219 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.777e-05/0.4613, allocations: 11.97 kB / 0.4972 GB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.4613, allocations: 3.938 kB / 0.4972 GB, free: 2.207 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.4613, allocations: 0 / 0.4972 GB, free: 2.207 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.4613, allocations: 0 / 0.4972 GB, free: 2.207 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001934/0.4615, allocations: 142.3 kB / 0.4973 GB, free: 2.031 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.4615, allocations: 3.984 kB / 0.4973 GB, free: 2.027 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.04e-05/0.4615, allocations: 4 kB / 0.4974 GB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4616, allocations: 0 / 0.4974 GB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.4616, allocations: 0 / 0.4974 GB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.4616, allocations: 3.953 kB / 0.4974 GB, free: 2.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4616, allocations: 0 / 0.4974 GB, free: 2.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001542/0.4618, allocations: 158.1 kB / 0.4975 GB, free: 1.84 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.187e-05/0.4619, allocations: 89 kB / 0.4976 GB, free: 1.734 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.4619, allocations: 7.938 kB / 0.4976 GB, free: 1.727 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.851e-05/0.462, allocations: 4 kB / 0.4976 GB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.727e-05/0.462, allocations: 4 kB / 0.4976 GB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.655e-06/0.4621, allocations: 0 / 0.4976 GB, free: 1.719 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.726e-05/0.4622, allocations: 110.4 kB / 0.4977 GB, free: 1.613 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4622, allocations: 0 / 0.4977 GB, free: 1.613 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002792/0.4625, allocations: 4.031 kB / 0.4977 GB, free: 1.609 MB / 346.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.0001116/0.4626, allocations: 95.25 kB / 0.4978 GB, free: 1.504 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.873e-05/0.4627, allocations: 8 kB / 0.4978 GB, free: 1.496 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.4627, allocations: 0 / 0.4978 GB, free: 1.496 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.931e-05/0.4627, allocations: 4 kB / 0.4978 GB, free: 1.492 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002968/0.463, allocations: 15.33 kB / 0.4978 GB, free: 1.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003024/0.4633, allocations: 130.6 kB / 0.498 GB, free: 1.32 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003348/0.4637, allocations: 0.6885 MB / 0.4986 GB, free: 0.6055 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.85e-05/0.4637, allocations: 11.38 kB / 0.4986 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4637, allocations: 0 / 0.4986 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of Templates: time 0.002408/0.4662, allocations: 0.5917 MB / 0.4992 GB, free: 4 kB / 346.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