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.0009264/0.0009263, allocations: 174.9 kB / 8.047 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 1.434/1.434, 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.0008559/0.0008559, allocations: 82.62 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.08243/0.08243, allocations: 12.6 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.822e-05/1.824e-05, allocations: 4 kB / 378.9 MB, free: 6.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2569, allocations: 50.37 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1035/0.3605, allocations: 76.85 MB / 0.4943 GB, free: 5.383 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002367/0.3608, allocations: 79.94 kB / 0.4944 GB, free: 5.305 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002321/0.3632, allocations: 0.989 MB / 0.4953 GB, free: 4.316 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3632, allocations: 0 / 0.4953 GB, free: 4.316 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.765e-06/0.3632, allocations: 7.875 kB / 0.4953 GB, free: 4.309 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.0003055/0.3635, allocations: 342.4 kB / 0.4957 GB, free: 3.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.3635, allocations: 8.031 kB / 0.4957 GB, free: 3.922 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.551e-05/0.3636, allocations: 11.91 kB / 0.4957 GB, free: 3.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.3638, allocations: 186.8 kB / 0.4959 GB, free: 3.688 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.213e-05/0.3638, allocations: 0 / 0.4959 GB, free: 3.688 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.3638, allocations: 7.953 kB / 0.4959 GB, free: 3.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.54e-05/0.3639, allocations: 8 kB / 0.4959 GB, free: 3.672 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001651/0.3641, allocations: 85.06 kB / 0.496 GB, free: 3.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.3641, allocations: 0 / 0.496 GB, free: 3.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.3641, allocations: 0 / 0.496 GB, free: 3.57 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.3641, allocations: 0 / 0.496 GB, free: 3.57 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002908/0.3644, allocations: 242.3 kB / 0.4962 GB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.341e-05/0.3645, allocations: 41.22 kB / 0.4962 GB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.751e-05/0.3645, allocations: 13.66 kB / 0.4962 GB, free: 3.215 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.3646, allocations: 4.062 kB / 0.4963 GB, free: 3.211 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.3646, allocations: 30.56 kB / 0.4963 GB, free: 3.172 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.3646, allocations: 0 / 0.4963 GB, free: 3.172 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.000141/0.3647, allocations: 41.69 kB / 0.4963 GB, free: 3.125 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.3648, allocations: 89.11 kB / 0.4964 GB, free: 3.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.3649, allocations: 120.4 kB / 0.4965 GB, free: 2.898 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.271e-05/0.3649, allocations: 25.7 kB / 0.4965 GB, free: 2.867 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.08e-05/0.365, allocations: 84.14 kB / 0.4966 GB, free: 2.781 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.424e-06/0.365, allocations: 0 / 0.4966 GB, free: 2.781 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.495e-06/0.365, allocations: 0 / 0.4966 GB, free: 2.781 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.3652, allocations: 322.8 kB / 0.4969 GB, free: 2.457 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.909e-06/0.3652, allocations: 4 kB / 0.4969 GB, free: 2.453 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.429e-05/0.3652, allocations: 13.72 kB / 0.497 GB, free: 2.434 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.165e-05/0.3652, allocations: 0 / 0.497 GB, free: 2.434 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3652, allocations: 0 / 0.497 GB, free: 2.434 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.805e-05/0.3653, allocations: 49.59 kB / 0.497 GB, free: 2.379 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.19e-05/0.3653, allocations: 4 kB / 0.497 GB, free: 2.375 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.3653, allocations: 0 / 0.497 GB, free: 2.375 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.13e-05/0.3653, allocations: 128 / 0.497 GB, free: 2.375 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.404e-05/0.3653, allocations: 8 kB / 0.497 GB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.3654, allocations: 3.984 kB / 0.497 GB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.659e-05/0.3654, allocations: 0 / 0.497 GB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.3654, allocations: 0 / 0.497 GB, free: 2.363 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 6.279e-05/0.3655, allocations: 105 kB / 0.4971 GB, free: 2.254 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.004e-05/0.3655, allocations: 41.5 kB / 0.4972 GB, free: 2.207 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.599e-05/0.3656, allocations: 11.97 kB / 0.4972 GB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.3656, allocations: 0 / 0.4972 GB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.3656, allocations: 11.95 kB / 0.4972 GB, free: 2.188 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.241e-06/0.3656, allocations: 4 kB / 0.4972 GB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001246/0.3657, allocations: 138.2 kB / 0.4973 GB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.3657, allocations: 4 kB / 0.4973 GB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.451e-06/0.3657, allocations: 0 / 0.4973 GB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.3657, allocations: 0 / 0.4973 GB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.3658, allocations: 0 / 0.4973 GB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.3658, allocations: 3.953 kB / 0.4973 GB, free: 2.004 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3658, allocations: 4 kB / 0.4973 GB, free: 2 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.804e-05/0.3659, allocations: 158 kB / 0.4975 GB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.023e-05/0.3659, allocations: 85.09 kB / 0.4976 GB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.366, allocations: 11.95 kB / 0.4976 GB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.238e-05/0.366, allocations: 0 / 0.4976 GB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.254e-05/0.366, allocations: 0 / 0.4976 GB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.445e-06/0.366, allocations: 4 kB / 0.4976 GB, free: 1.703 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.513e-05/0.3661, allocations: 105 kB / 0.4977 GB, free: 1.602 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.234e-06/0.3661, allocations: 0 / 0.4977 GB, free: 1.602 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002049/0.3663, allocations: 7.938 kB / 0.4977 GB, free: 1.594 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 9.202e-05/0.3664, allocations: 95.23 kB / 0.4978 GB, free: 1.488 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.326e-05/0.3665, allocations: 8 kB / 0.4978 GB, free: 1.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.3665, allocations: 4 kB / 0.4978 GB, free: 1.477 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.057e-06/0.3665, allocations: 0 / 0.4978 GB, free: 1.477 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.3667, allocations: 15.39 kB / 0.4978 GB, free: 1.465 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001919/0.3669, allocations: 100.9 kB / 0.4979 GB, free: 1.34 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.3672, allocations: 0.6885 MB / 0.4986 GB, free: 0.625 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.081e-05/0.3672, allocations: 3.938 kB / 0.4986 GB, free: 0.6211 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.949e-05/0.3672, allocations: 11.44 kB / 0.4986 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3672, allocations: 0 / 0.4986 GB, free: 0.6094 MB / 346.7 MB Notification: Performance of Templates: time 0.002109/0.3694, allocations: 363.1 kB / 0.4989 GB, free: 264 kB / 346.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