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.0008791/0.0008792, allocations: 175.3 kB / 16.45 MB, free: 5.684 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.543/1.543, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0008037/0.0008037, allocations: 98.22 kB / 270.9 MB, free: 8.348 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.07442/0.07442, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004098/0.0004099, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07114/0.07157, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.001733/0.07334, allocations: 1.551 MB / 443.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001225/0.0746, allocations: 0.9098 MB / 444.8 MB, free: 13.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001195/0.07474, allocations: 7.938 kB / 444.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004449/0.0752, allocations: 135.7 kB / 445 MB, free: 13.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002402/0.07545, allocations: 99.69 kB / 445.1 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004375/0.0759, allocations: 147.7 kB / 445.2 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001647/0.07608, allocations: 167.4 kB / 445.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.861e-05/0.07616, allocations: 29.53 kB / 445.4 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.407e-05/0.07625, allocations: 59.64 kB / 445.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.981e-05/0.07634, allocations: 67.7 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.988e-05/0.07637, allocations: 4 kB / 445.5 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.88e-05/0.07647, allocations: 39.95 kB / 445.6 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.433e-05/0.07652, allocations: 39.84 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.922e-05/0.07657, allocations: 45.64 kB / 445.7 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.07674, allocations: 151.9 kB / 445.8 MB, free: 12.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.07675, allocations: 0 / 445.8 MB, free: 12.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.07676, allocations: 0 / 445.8 MB, free: 12.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.07677, allocations: 0 / 445.8 MB, free: 12.99 MB / 298.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.0004981/0.07727, allocations: 0.4884 MB / 446.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.84e-05/0.07731, allocations: 8.031 kB / 446.3 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.141e-05/0.07735, allocations: 19.81 kB / 446.3 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002285/0.07759, allocations: 265.5 kB / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.755e-05/0.07761, allocations: 4 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.239e-05/0.07763, allocations: 7.938 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002749/0.07791, allocations: 146.7 kB / 446.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.734e-06/0.07793, allocations: 0 / 446.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.07795, allocations: 0 / 446.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.07796, allocations: 0 / 446.7 MB, free: 11.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.927e-05/0.07807, allocations: 43.86 kB / 446.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003397/0.07842, allocations: 354.5 kB / 447.1 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001648/0.07859, allocations: 103.9 kB / 447.2 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.232e-05/0.07867, allocations: 50.56 kB / 447.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.1e-05/0.0787, allocations: 4 kB / 447.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001168/0.07882, allocations: 75.33 kB / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.453e-06/0.07883, allocations: 0 / 447.4 MB, free: 11.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002757/0.07911, allocations: 145.3 kB / 447.5 MB, free: 11.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.07916, allocations: 136.4 kB / 447.6 MB, free: 10.9 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.07935, allocations: 265 kB / 447.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.07936, allocations: 25.7 kB / 447.9 MB, free: 10.6 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.341e-05/0.07941, allocations: 120.1 kB / 448 MB, free: 10.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.07944, allocations: 19.81 kB / 448.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.158e-06/0.07945, allocations: 4.25 kB / 448.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.068e-05/0.07949, allocations: 330.8 kB / 448.4 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.139e-05/0.07955, allocations: 19.98 kB / 448.4 MB, free: 10.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.22e-05/0.07962, allocations: 73.92 kB / 448.5 MB, free: 10.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.747e-05/0.07968, allocations: 28.02 kB / 448.5 MB, free: 9.984 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.07969, allocations: 3.938 kB / 448.5 MB, free: 9.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001625/0.07986, allocations: 109.4 kB / 448.6 MB, free: 9.867 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.23e-05/0.07988, allocations: 7.984 kB / 448.6 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.07989, allocations: 0 / 448.6 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.022e-05/0.07991, allocations: 4 kB / 448.6 MB, free: 9.855 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.851e-05/0.07998, allocations: 11.94 kB / 448.6 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.202e-06/0.08, allocations: 4.125 kB / 448.6 MB, free: 9.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.765e-05/0.08007, allocations: 27.78 kB / 448.7 MB, free: 9.812 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.333e-06/0.08008, allocations: 4 kB / 448.7 MB, free: 9.809 MB / 298.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 () * Number of clocked 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 8.064e-05/0.08017, allocations: 141.6 kB / 448.8 MB, free: 9.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.736e-05/0.08023, allocations: 61.45 kB / 448.9 MB, free: 9.594 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.876e-05/0.08028, allocations: 21.7 kB / 448.9 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.08028, allocations: 0 / 448.9 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.08029, allocations: 64 / 448.9 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.0803, allocations: 8 kB / 448.9 MB, free: 9.566 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.08042, allocations: 233.5 kB / 449.1 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.08043, allocations: 0 / 449.1 MB, free: 9.289 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.402e-05/0.08046, allocations: 8.297 kB / 449.1 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.225e-06/0.08047, allocations: 0 / 449.1 MB, free: 9.281 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.08048, allocations: 8 kB / 449.1 MB, free: 9.273 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.08049, allocations: 3.938 kB / 449.1 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.08049, allocations: 0 / 449.1 MB, free: 9.27 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001887/0.08068, allocations: 166.4 kB / 449.3 MB, free: 9.082 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.604e-05/0.08075, allocations: 104.9 kB / 449.4 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.535e-05/0.08078, allocations: 8 kB / 449.4 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.148e-05/0.08085, allocations: 7.984 kB / 449.4 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.873e-05/0.08089, allocations: 4 kB / 449.4 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.026e-05/0.0809, allocations: 0 / 449.4 MB, free: 8.941 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001283/0.08103, allocations: 196.5 kB / 449.6 MB, free: 8.75 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08104, allocations: 4 kB / 449.6 MB, free: 8.746 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000211/0.08126, allocations: 27.98 kB / 449.6 MB, free: 8.719 MB / 298.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.0006882/0.08195, allocations: 411.7 kB / 450.1 MB, free: 8.309 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001611/0.08212, allocations: 63.91 kB / 450.1 MB, free: 8.246 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.08213, allocations: 0 / 450.1 MB, free: 8.246 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.756e-05/0.0822, allocations: 36.16 kB / 450.1 MB, free: 8.211 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.08254, allocations: 64.27 kB / 450.2 MB, free: 8.148 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004063/0.08295, allocations: 365.7 kB / 450.6 MB, free: 7.754 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001372/0.0831, allocations: 0.7361 MB / 451.3 MB, free: 6.992 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.67e-05/0.08315, allocations: 19.44 kB / 451.3 MB, free: 6.973 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.08315, allocations: 0 / 451.3 MB, free: 6.973 MB / 298.7 MB Notification: Performance of Templates: time 0.003557/0.08671, allocations: 2.582 MB / 453.9 MB, free: 4.383 MB / 298.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/jenkins/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