Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002257/0.002256, 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.155/2.155, 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.001108/0.001108, allocations: 86.64 kB / 262.1 MB, free: 1.617 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.61 MB / 322.7 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.706e-05/2.729e-05, allocations: 4 kB / 378.9 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3163/0.3163, allocations: 50.38 MB / 429.3 MB, free: 18.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1453/0.4617, allocations: 81.08 MB / 0.4984 GB, free: 1.215 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003244/0.4621, allocations: 83.94 kB / 0.4985 GB, free: 1.133 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02631/0.4885, allocations: 5.747 MB / 0.5041 GB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4885, allocations: 4 kB / 0.5041 GB, free: 11.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.339e-05/0.4886, allocations: 4 kB / 0.5041 GB, free: 11.38 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.0007761/0.4893, allocations: 463.7 kB / 0.5045 GB, free: 10.88 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/0.4894, allocations: 19.91 kB / 0.5046 GB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.339e-05/0.4895, allocations: 23.7 kB / 0.5046 GB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005574/0.4901, allocations: 257.8 kB / 0.5048 GB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.4901, allocations: 7.953 kB / 0.5048 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.529e-05/0.4902, allocations: 4 kB / 0.5048 GB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001476/0.4903, allocations: 36 kB / 0.5049 GB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003381/0.4907, allocations: 134.7 kB / 0.505 GB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.4907, allocations: 3.938 kB / 0.505 GB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.4907, allocations: 3.984 kB / 0.505 GB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.4907, allocations: 0 / 0.505 GB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006792/0.4914, allocations: 339 kB / 0.5053 GB, free: 9.953 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002078/0.4917, allocations: 99.91 kB / 0.5054 GB, free: 9.828 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.978e-05/0.4918, allocations: 42.69 kB / 0.5055 GB, free: 9.777 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.35e-05/0.4918, allocations: 0 / 0.5055 GB, free: 9.777 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001747/0.492, allocations: 83.17 kB / 0.5056 GB, free: 9.684 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 4.749e-06/0.492, allocations: 4 kB / 0.5056 GB, free: 9.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003538/0.4924, allocations: 109.4 kB / 0.5057 GB, free: 9.566 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.544e-05/0.4925, allocations: 132.5 kB / 0.5058 GB, free: 9.406 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003667/0.4929, allocations: 228.5 kB / 0.506 GB, free: 9.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.4929, allocations: 29.7 kB / 0.506 GB, free: 9.145 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.493, allocations: 174.5 kB / 0.5062 GB, free: 8.973 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.505e-05/0.4931, allocations: 15.89 kB / 0.5062 GB, free: 8.957 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-06/0.4931, allocations: 4.062 kB / 0.5062 GB, free: 8.953 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.4932, allocations: 314.8 kB / 0.5065 GB, free: 8.637 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.769e-05/0.4933, allocations: 16 kB / 0.5065 GB, free: 8.621 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001102/0.4934, allocations: 66 kB / 0.5066 GB, free: 8.535 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.273e-05/0.4935, allocations: 39.97 kB / 0.5066 GB, free: 8.496 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.4936, allocations: 0 / 0.5066 GB, free: 8.496 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002326/0.4938, allocations: 89.53 kB / 0.5067 GB, free: 8.402 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.4938, allocations: 8 kB / 0.5067 GB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.4938, allocations: 0 / 0.5067 GB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.4939, allocations: 3.984 kB / 0.5067 GB, free: 8.391 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001471/0.494, allocations: 12 kB / 0.5067 GB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.4941, allocations: 8.062 kB / 0.5068 GB, free: 8.371 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001438/0.4942, allocations: 8 kB / 0.5068 GB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.4942, allocations: 3.984 kB / 0.5068 GB, free: 8.359 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,shiftSample1.y,shiftSample1.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.0001211/0.4944, allocations: 121 kB / 0.5069 GB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.4945, allocations: 57.45 kB / 0.5069 GB, free: 8.172 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003121/0.4948, allocations: 111.5 kB / 0.507 GB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.4948, allocations: 0 / 0.507 GB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.4949, allocations: 4.062 kB / 0.507 GB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.4949, allocations: 4 kB / 0.507 GB, free: 8.047 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002946/0.4952, allocations: 202.1 kB / 0.5072 GB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.4952, allocations: 0 / 0.5072 GB, free: 7.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.018e-05/0.4953, allocations: 4 kB / 0.5072 GB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.036e-05/0.4953, allocations: 7.953 kB / 0.5073 GB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.4953, allocations: 3.984 kB / 0.5073 GB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.536e-06/0.4953, allocations: 7.875 kB / 0.5073 GB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.4954, allocations: 4.078 kB / 0.5073 GB, free: 7.785 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003278/0.4957, allocations: 178 kB / 0.5074 GB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001641/0.4959, allocations: 116.9 kB / 0.5075 GB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.44e-05/0.4959, allocations: 7.938 kB / 0.5076 GB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.4961, allocations: 4 kB / 0.5076 GB, free: 7.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.4961, allocations: 3.984 kB / 0.5076 GB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.4962, allocations: 8 kB / 0.5076 GB, free: 7.418 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002719/0.4964, allocations: 184.5 kB / 0.5077 GB, free: 7.234 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.4964, allocations: 0 / 0.5077 GB, free: 7.234 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004106/0.4969, allocations: 35.94 kB / 0.5078 GB, free: 7.199 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,shiftSample1.y,sample.y,shiftSample1.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.001084/0.498, allocations: 357.9 kB / 0.5081 GB, free: 6.852 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002887/0.4983, allocations: 63.86 kB / 0.5082 GB, free: 6.789 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.4983, allocations: 0 / 0.5082 GB, free: 6.789 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.281e-05/0.4984, allocations: 27.94 kB / 0.5082 GB, free: 6.762 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005333/0.4989, allocations: 55.75 kB / 0.5083 GB, free: 6.711 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006856/0.4997, allocations: 258.2 kB / 0.5085 GB, free: 6.422 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003626/0.5, allocations: 0.7358 MB / 0.5092 GB, free: 5.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.726e-05/0.5001, allocations: 19.42 kB / 0.5092 GB, free: 5.641 MB / 362.7 MB Notification: Performance of SimCode: time 8.82e-07/0.5001, allocations: 0 / 0.5092 GB, free: 5.641 MB / 362.7 MB Notification: Performance of Templates: time 0.007566/0.5077, allocations: 2.617 MB / 0.5118 GB, free: 3.031 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches