Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001488/0.001488, allocations: 177.8 kB / 8.406 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.046/2.046, allocations: 205.3 MB / 214.1 MB, free: 1.664 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.001076/0.001076, allocations: 90.69 kB / 262.2 MB, free: 1.609 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.09589/0.09589, allocations: 12.6 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.987e-05/2.018e-05, allocations: 0 / 378.9 MB, free: 6.895 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2996/0.2997, allocations: 50.37 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1295/0.4292, allocations: 76.87 MB / 0.4943 GB, free: 5.457 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.4296, allocations: 71.95 kB / 0.4944 GB, free: 5.387 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003882/0.4335, allocations: 1.054 MB / 0.4954 GB, free: 4.332 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.4335, allocations: 0 / 0.4954 GB, free: 4.332 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.531e-05/0.4336, allocations: 11.94 kB / 0.4954 GB, free: 4.32 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.000383/0.434, allocations: 342.5 kB / 0.4957 GB, free: 3.941 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.434, allocations: 8.031 kB / 0.4957 GB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.98e-05/0.4341, allocations: 7.906 kB / 0.4957 GB, free: 3.926 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.4343, allocations: 179 kB / 0.4959 GB, free: 3.711 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.4343, allocations: 7.938 kB / 0.4959 GB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.326e-05/0.4344, allocations: 3.953 kB / 0.4959 GB, free: 3.699 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.061e-05/0.4344, allocations: 12 kB / 0.4959 GB, free: 3.688 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001929/0.4346, allocations: 81.06 kB / 0.496 GB, free: 3.59 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.4347, allocations: 0 / 0.496 GB, free: 3.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.4347, allocations: 4 kB / 0.496 GB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.4347, allocations: 0 / 0.496 GB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003802/0.4351, allocations: 250.3 kB / 0.4962 GB, free: 3.301 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.205e-05/0.4352, allocations: 33.09 kB / 0.4963 GB, free: 3.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.225e-05/0.4352, allocations: 17.84 kB / 0.4963 GB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.661e-05/0.4352, allocations: 0 / 0.4963 GB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.4353, allocations: 34.56 kB / 0.4963 GB, free: 3.184 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.393e-06/0.4353, allocations: 4 kB / 0.4963 GB, free: 3.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001641/0.4355, allocations: 45.53 kB / 0.4964 GB, free: 3.129 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/0.4355, allocations: 81.11 kB / 0.4965 GB, free: 3.031 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.4357, allocations: 118.5 kB / 0.4966 GB, free: 2.906 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.4357, allocations: 25.7 kB / 0.4966 GB, free: 2.875 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.157e-05/0.4358, allocations: 150.6 kB / 0.4967 GB, free: 2.727 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.096e-05/0.4358, allocations: 4 kB / 0.4967 GB, free: 2.723 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.376e-06/0.4358, allocations: 4.062 kB / 0.4967 GB, free: 2.719 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.436, allocations: 310.8 kB / 0.497 GB, free: 2.406 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.552e-05/0.436, allocations: 7.938 kB / 0.497 GB, free: 2.398 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.252e-05/0.436, allocations: 9.719 kB / 0.4971 GB, free: 2.383 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.63e-05/0.4361, allocations: 15.92 kB / 0.4971 GB, free: 2.367 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.4361, allocations: 0 / 0.4971 GB, free: 2.367 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.448e-05/0.4362, allocations: 41.72 kB / 0.4971 GB, free: 2.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.4362, allocations: 4 kB / 0.4971 GB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.4362, allocations: 4 kB / 0.4971 GB, free: 2.312 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.4362, allocations: 0 / 0.4971 GB, free: 2.312 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.4364, allocations: 11.92 kB / 0.4971 GB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.4364, allocations: 0 / 0.4971 GB, free: 2.301 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.996e-05/0.4364, allocations: 4 kB / 0.4971 GB, free: 2.297 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.024e-06/0.4365, allocations: 0 / 0.4971 GB, free: 2.297 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.568e-05/0.4366, allocations: 110.5 kB / 0.4972 GB, free: 2.184 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.371e-05/0.4366, allocations: 41.56 kB / 0.4973 GB, free: 2.137 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.435e-05/0.4367, allocations: 15.95 kB / 0.4973 GB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.4367, allocations: 0 / 0.4973 GB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.4367, allocations: 0 / 0.4973 GB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.4367, allocations: 0 / 0.4973 GB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/0.4369, allocations: 138.2 kB / 0.4974 GB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.437, allocations: 4 kB / 0.4974 GB, free: 1.945 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.886e-05/0.437, allocations: 7.984 kB / 0.4974 GB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.437, allocations: 0 / 0.4974 GB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.4371, allocations: 7.984 kB / 0.4974 GB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.967e-06/0.4371, allocations: 4 kB / 0.4974 GB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4371, allocations: 0 / 0.4974 GB, free: 1.926 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001496/0.4372, allocations: 166 kB / 0.4976 GB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.594e-05/0.4373, allocations: 85.02 kB / 0.4977 GB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.213e-05/0.4374, allocations: 7.938 kB / 0.4977 GB, free: 1.629 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001005/0.4375, allocations: 12.03 kB / 0.4977 GB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.694e-05/0.4375, allocations: 0 / 0.4977 GB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.4375, allocations: 0 / 0.4977 GB, free: 1.617 MB / 346.7 MB Notification: Performance of sorting global known variables: time 8.892e-05/0.4376, allocations: 105 kB / 0.4978 GB, free: 1.516 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4376, allocations: 0 / 0.4978 GB, free: 1.516 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002784/0.4379, allocations: 0 / 0.4978 GB, free: 1.516 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.0001114/0.4381, allocations: 95.25 kB / 0.4979 GB, free: 1.414 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.945e-05/0.4382, allocations: 12 kB / 0.4979 GB, free: 1.402 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.4382, allocations: 3.938 kB / 0.4979 GB, free: 1.398 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.859e-05/0.4382, allocations: 7.938 kB / 0.4979 GB, free: 1.391 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.4385, allocations: 15.39 kB / 0.4979 GB, free: 1.379 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002959/0.4388, allocations: 118.3 kB / 0.498 GB, free: 1.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002973/0.4391, allocations: 0.6924 MB / 0.4987 GB, free: 0.5117 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.329e-05/0.4392, allocations: 11.42 kB / 0.4987 GB, free: 0.5 MB / 346.7 MB Notification: Performance of SimCode: time 1.243e-06/0.4392, allocations: 4.281 kB / 0.4987 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of Templates: time 0.00324/0.4424, allocations: 0.5962 MB / 0.4993 GB, free: 15.9 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches