Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001361/0.001361, allocations: 181.3 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 1.489/1.489, allocations: 205.2 MB / 219 MB, free: 9.207 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.0008432/0.0008432, allocations: 82.61 kB / 267.1 MB, free: 9.273 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.0713/0.0713, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.847e-05/2.848e-05, allocations: 8 kB / 386 MB, free: 69.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08231/0.08235, allocations: 50.37 MB / 436.4 MB, free: 19.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3578/0.4402, allocations: 77.52 MB / 0.5018 GB, free: 12.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/0.4404, allocations: 78.25 kB / 0.5019 GB, free: 12.03 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002034/0.4425, allocations: 0.9942 MB / 0.5029 GB, free: 11.68 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.4425, allocations: 3.938 kB / 0.5029 GB, free: 11.67 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.266e-06/0.4425, allocations: 3.844 kB / 0.5029 GB, free: 11.67 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0002049/0.4427, allocations: 336 kB / 0.5032 GB, free: 11.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.327e-05/0.4428, allocations: 7.688 kB / 0.5032 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.695e-05/0.4428, allocations: 9.812 kB / 0.5032 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001232/0.4429, allocations: 188.2 kB / 0.5034 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.4429, allocations: 1.125 kB / 0.5034 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.078e-05/0.443, allocations: 7.797 kB / 0.5034 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001508/0.4431, allocations: 86.62 kB / 0.5035 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-06/0.4431, allocations: 0 / 0.5035 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.4431, allocations: 0 / 0.5035 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.4432, allocations: 0 / 0.5035 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.493e-05/0.4432, allocations: 7.031 kB / 0.5035 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002242/0.4434, allocations: 267.9 kB / 0.5038 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.659e-05/0.4435, allocations: 36.47 kB / 0.5038 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.793e-05/0.4435, allocations: 13.09 kB / 0.5038 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.497e-05/0.4435, allocations: 3.844 kB / 0.5038 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.49e-05/0.4435, allocations: 39.38 kB / 0.5039 GB, free: 10.65 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 1.162e-06/0.4435, allocations: 0 / 0.5039 GB, free: 10.65 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001169/0.4437, allocations: 47.52 kB / 0.5039 GB, free: 10.61 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.4437, allocations: 81.05 kB / 0.504 GB, free: 10.52 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.52e-05/0.4438, allocations: 128.9 kB / 0.5041 GB, free: 10.42 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.063e-06/0.4438, allocations: 25.7 kB / 0.5041 GB, free: 10.39 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.144e-05/0.4438, allocations: 83.95 kB / 0.5042 GB, free: 10.31 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.073e-06/0.4438, allocations: 11.34 kB / 0.5042 GB, free: 10.3 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.274e-06/0.4438, allocations: 0 / 0.5042 GB, free: 10.3 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.077e-05/0.4439, allocations: 310.8 kB / 0.5045 GB, free: 9.992 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.178e-06/0.4439, allocations: 0 / 0.5045 GB, free: 9.992 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.062e-05/0.4439, allocations: 16.81 kB / 0.5045 GB, free: 9.977 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.422e-05/0.4439, allocations: 7.078 kB / 0.5045 GB, free: 9.977 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4439, allocations: 3.953 kB / 0.5045 GB, free: 9.973 MB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.797e-05/0.444, allocations: 48.98 kB / 0.5046 GB, free: 9.934 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.444, allocations: 3.844 kB / 0.5046 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.444, allocations: 0 / 0.5046 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.444, allocations: 0 / 0.5046 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.427e-05/0.4441, allocations: 6.281 kB / 0.5046 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/0.4441, allocations: 0 / 0.5046 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.695e-05/0.4441, allocations: 0 / 0.5046 GB, free: 9.934 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.4441, allocations: 5.094 kB / 0.5046 GB, free: 9.934 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: 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 3.373e-05/0.4441, allocations: 113.9 kB / 0.5047 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.576e-05/0.4442, allocations: 51.61 kB / 0.5048 GB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.475e-05/0.4442, allocations: 3.656 kB / 0.5048 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.4442, allocations: 3.844 kB / 0.5048 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.4442, allocations: 0 / 0.5048 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.4442, allocations: 0 / 0.5048 GB, free: 9.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.4444, allocations: 164.8 kB / 0.5049 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4444, allocations: 0 / 0.5049 GB, free: 9.582 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.821e-06/0.4444, allocations: 3.953 kB / 0.5049 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.983e-06/0.4444, allocations: 3.844 kB / 0.5049 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.072e-06/0.4444, allocations: 8.031 kB / 0.5049 GB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.4444, allocations: 0 / 0.5049 GB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.4444, allocations: 0 / 0.5049 GB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.954e-05/0.4445, allocations: 158.2 kB / 0.5051 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.278e-05/0.4445, allocations: 92.81 kB / 0.5052 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.222e-05/0.4445, allocations: 3.984 kB / 0.5052 GB, free: 9.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.277e-05/0.4446, allocations: 7.969 kB / 0.5052 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.649e-05/0.4446, allocations: 3.844 kB / 0.5052 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.514e-06/0.4446, allocations: 0 / 0.5052 GB, free: 9.305 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.068e-05/0.4447, allocations: 106 kB / 0.5053 GB, free: 9.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4447, allocations: 0 / 0.5053 GB, free: 9.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002042/0.4449, allocations: 3.469 kB / 0.5053 GB, free: 9.23 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: 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 5.75e-05/0.445, allocations: 97.91 kB / 0.5054 GB, free: 9.141 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 5.816e-05/0.445, allocations: 11.69 kB / 0.5054 GB, free: 9.137 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.445, allocations: 0 / 0.5054 GB, free: 9.137 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.2e-05/0.4451, allocations: 10.09 kB / 0.5054 GB, free: 9.133 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000191/0.4452, allocations: 15.89 kB / 0.5054 GB, free: 9.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000162/0.4454, allocations: 96.22 kB / 0.5055 GB, free: 9.039 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001091/0.4455, allocations: 0.689 MB / 0.5062 GB, free: 8.344 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.002e-05/0.4456, allocations: 4.125 kB / 0.5062 GB, free: 8.344 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.911e-05/0.4456, allocations: 14.34 kB / 0.5062 GB, free: 8.332 MB / 330.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4456, allocations: 0 / 0.5062 GB, free: 8.332 MB / 330.7 MB Notification: Performance of Templates: time 0.001859/0.4475, allocations: 388.1 kB / 0.5066 GB, free: 8.277 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches