Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002111/0.002111, allocations: 179.4 kB / 8.407 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.115/2.115, allocations: 205.3 MB / 214.1 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.001106/0.001105, allocations: 90.69 kB / 262.2 MB, free: 1.672 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.09875/0.09875, allocations: 12.6 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.257e-05/2.254e-05, allocations: 4 kB / 378.9 MB, free: 6.898 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.3133, allocations: 50.38 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1436/0.457, allocations: 81.09 MB / 0.4984 GB, free: 1.215 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003292/0.4574, allocations: 79.95 kB / 0.4985 GB, free: 1.137 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02925/0.4866, allocations: 6.274 MB / 0.5046 GB, free: 10.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4867, allocations: 4 kB / 0.5046 GB, free: 10.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.14e-05/0.4867, allocations: 4 kB / 0.5046 GB, free: 10.86 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007651/0.4875, allocations: 467.7 kB / 0.5051 GB, free: 10.35 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.4876, allocations: 11.97 kB / 0.5051 GB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.89e-05/0.4876, allocations: 19.72 kB / 0.5051 GB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005633/0.4882, allocations: 253.7 kB / 0.5053 GB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.582e-05/0.4883, allocations: 7.953 kB / 0.5053 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.4883, allocations: 7.984 kB / 0.5054 GB, free: 10.01 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001517/0.4885, allocations: 36 kB / 0.5054 GB, free: 9.977 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003545/0.4888, allocations: 130.8 kB / 0.5055 GB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.4889, allocations: 7.922 kB / 0.5055 GB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.4889, allocations: 0 / 0.5055 GB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.4889, allocations: 0 / 0.5055 GB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006931/0.4896, allocations: 339 kB / 0.5058 GB, free: 9.441 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002169/0.4899, allocations: 104.2 kB / 0.5059 GB, free: 9.312 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.901e-05/0.49, allocations: 46.69 kB / 0.506 GB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.49, allocations: 0 / 0.506 GB, free: 9.258 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001841/0.4902, allocations: 83.23 kB / 0.5061 GB, free: 9.164 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 3.807e-06/0.4902, allocations: 7.984 kB / 0.5061 GB, free: 9.156 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003738/0.4906, allocations: 109.4 kB / 0.5062 GB, free: 9.043 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.426e-05/0.4907, allocations: 132.5 kB / 0.5063 GB, free: 8.883 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003918/0.4911, allocations: 224.5 kB / 0.5065 GB, free: 8.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.33e-05/0.4912, allocations: 33.7 kB / 0.5066 GB, free: 8.621 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001221/0.4913, allocations: 174.5 kB / 0.5067 GB, free: 8.449 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.611e-05/0.4914, allocations: 23.77 kB / 0.5067 GB, free: 8.426 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.103e-06/0.4914, allocations: 4.062 kB / 0.5067 GB, free: 8.422 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.4915, allocations: 314.8 kB / 0.507 GB, free: 8.105 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.362e-05/0.4916, allocations: 16 kB / 0.5071 GB, free: 8.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001078/0.4917, allocations: 69.94 kB / 0.5071 GB, free: 8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.806e-05/0.4918, allocations: 35.91 kB / 0.5072 GB, free: 7.965 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.4918, allocations: 0 / 0.5072 GB, free: 7.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002371/0.4921, allocations: 85.53 kB / 0.5072 GB, free: 7.875 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.4921, allocations: 8 kB / 0.5073 GB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.4921, allocations: 0 / 0.5073 GB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.4922, allocations: 0 / 0.5073 GB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.4923, allocations: 15.98 kB / 0.5073 GB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.4924, allocations: 4.062 kB / 0.5073 GB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.4925, allocations: 12 kB / 0.5073 GB, free: 7.836 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.4925, allocations: 4 kB / 0.5073 GB, free: 7.832 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001178/0.4927, allocations: 118.1 kB / 0.5074 GB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.4928, allocations: 57.45 kB / 0.5075 GB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003165/0.4931, allocations: 111.4 kB / 0.5076 GB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.4932, allocations: 0 / 0.5076 GB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.4932, allocations: 4.062 kB / 0.5076 GB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.4932, allocations: 4 kB / 0.5076 GB, free: 7.523 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003063/0.4935, allocations: 206.2 kB / 0.5078 GB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.4935, allocations: 0 / 0.5078 GB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.469e-05/0.4936, allocations: 4.125 kB / 0.5078 GB, free: 7.281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.339e-05/0.4936, allocations: 7.953 kB / 0.5078 GB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.633e-05/0.4936, allocations: 4 kB / 0.5078 GB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.113e-06/0.4937, allocations: 7.922 kB / 0.5078 GB, free: 7.262 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.4937, allocations: 4 kB / 0.5078 GB, free: 7.258 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003247/0.494, allocations: 170 kB / 0.508 GB, free: 7.055 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.4942, allocations: 120.7 kB / 0.5081 GB, free: 6.918 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.42e-05/0.4943, allocations: 8 kB / 0.5081 GB, free: 6.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001173/0.4944, allocations: 8.031 kB / 0.5081 GB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.288e-05/0.4945, allocations: 7.922 kB / 0.5081 GB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.4945, allocations: 8 kB / 0.5081 GB, free: 6.887 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002781/0.4948, allocations: 184.5 kB / 0.5083 GB, free: 6.703 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.4948, allocations: 0 / 0.5083 GB, free: 6.703 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000398/0.4952, allocations: 32 kB / 0.5083 GB, free: 6.672 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001116/0.4963, allocations: 346 kB / 0.5086 GB, free: 6.336 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003005/0.4967, allocations: 71.86 kB / 0.5087 GB, free: 6.266 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.4967, allocations: 0 / 0.5087 GB, free: 6.266 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.117e-05/0.4968, allocations: 27.94 kB / 0.5087 GB, free: 6.238 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005423/0.4973, allocations: 51.75 kB / 0.5088 GB, free: 6.191 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007141/0.4981, allocations: 258.2 kB / 0.509 GB, free: 5.902 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003879/0.4985, allocations: 0.7397 MB / 0.5097 GB, free: 5.137 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.793e-05/0.4986, allocations: 23.44 kB / 0.5098 GB, free: 5.113 MB / 362.7 MB Notification: Performance of SimCode: time 1.663e-06/0.4986, allocations: 0 / 0.5098 GB, free: 5.113 MB / 362.7 MB Notification: Performance of Templates: time 0.007765/0.5064, allocations: 2.604 MB / 0.5123 GB, free: 2.516 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches