Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001292/0.001291, allocations: 173.1 kB / 16.76 MB, free: 5.055 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.32/1.32, allocations: 205 MB / 222.5 MB, free: 9.062 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.0007739/0.0007738, allocations: 103.3 kB / 270.5 MB, free: 8.66 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.07244/0.07244, allocations: 12.56 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003991/0.0003991, allocations: 16 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0771/0.07752, allocations: 49.98 MB / 441.7 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.001831/0.07939, allocations: 1.598 MB / 443.3 MB, free: 14.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.08071, allocations: 0.9675 MB / 444.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.08084, allocations: 4 kB / 444.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005582/0.08141, allocations: 139.6 kB / 444.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.08164, allocations: 99.69 kB / 444.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004903/0.08214, allocations: 175.6 kB / 444.7 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001633/0.08231, allocations: 175.5 kB / 444.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.337e-05/0.08241, allocations: 33.81 kB / 444.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.492e-05/0.08249, allocations: 55.72 kB / 444.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.381e-05/0.08259, allocations: 71.62 kB / 445 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.991e-05/0.08261, allocations: 0 / 445 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.682e-05/0.08272, allocations: 47.97 kB / 445 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.203e-05/0.08278, allocations: 39.83 kB / 445.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.292e-05/0.08284, allocations: 63.5 kB / 445.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001507/0.08299, allocations: 147.6 kB / 445.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.08301, allocations: 0 / 445.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.08301, allocations: 3.984 kB / 445.3 MB, free: 12.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.08303, allocations: 0 / 445.3 MB, free: 12.78 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.0005494/0.08358, allocations: 492.3 kB / 445.8 MB, free: 12.24 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.062e-05/0.08362, allocations: 8.031 kB / 445.8 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.418e-05/0.08367, allocations: 16.75 kB / 445.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.0839, allocations: 266.8 kB / 446 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.08393, allocations: 4.375 kB / 446.1 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.562e-05/0.08395, allocations: 12.12 kB / 446.1 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002511/0.08421, allocations: 150.7 kB / 446.2 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.08423, allocations: 0 / 446.2 MB, free: 11.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.08424, allocations: 4 kB / 446.2 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.489e-06/0.08425, allocations: 0 / 446.2 MB, free: 11.72 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.416e-05/0.08434, allocations: 35.92 kB / 446.2 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003407/0.08469, allocations: 358.3 kB / 446.6 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001649/0.08487, allocations: 107.9 kB / 446.7 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.195e-05/0.08494, allocations: 42.56 kB / 446.7 MB, free: 11.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.326e-05/0.08497, allocations: 4 kB / 446.7 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001265/0.0851, allocations: 83.31 kB / 446.8 MB, free: 11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.432e-06/0.08511, allocations: 0 / 446.8 MB, free: 11 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002797/0.0854, allocations: 145.3 kB / 447 MB, free: 10.85 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.08545, allocations: 136.7 kB / 447.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001821/0.08564, allocations: 261 kB / 447.4 MB, free: 10.42 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.224e-05/0.08566, allocations: 33.7 kB / 447.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.84e-05/0.08571, allocations: 116.1 kB / 447.5 MB, free: 10.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.911e-05/0.08574, allocations: 23.8 kB / 447.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.23e-05/0.08577, allocations: 17.72 kB / 447.5 MB, free: 10.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.802e-05/0.08582, allocations: 334.7 kB / 447.9 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.103e-05/0.08588, allocations: 23.98 kB / 447.9 MB, free: 9.859 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.481e-05/0.08595, allocations: 77.94 kB / 448 MB, free: 9.762 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001082/0.08606, allocations: 76.47 kB / 448 MB, free: 9.672 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.08608, allocations: 4.031 kB / 448.1 MB, free: 9.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000153/0.08623, allocations: 113.4 kB / 448.2 MB, free: 9.551 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.08625, allocations: 8 kB / 448.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.08626, allocations: 0 / 448.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.08628, allocations: 4 kB / 448.2 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.776e-05/0.08635, allocations: 11.98 kB / 448.2 MB, free: 9.527 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.08637, allocations: 7.938 kB / 448.2 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.359e-05/0.08644, allocations: 15.84 kB / 448.2 MB, free: 9.504 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.393e-06/0.08645, allocations: 8.125 kB / 448.2 MB, free: 9.496 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.239e-05/0.08654, allocations: 138.7 kB / 448.4 MB, free: 9.352 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.859e-05/0.0866, allocations: 61.44 kB / 448.4 MB, free: 9.285 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.068e-05/0.08665, allocations: 21.72 kB / 448.4 MB, free: 9.266 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.08666, allocations: 4 kB / 448.4 MB, free: 9.262 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.08667, allocations: 3.984 kB / 448.4 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.08668, allocations: 3.938 kB / 448.4 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001317/0.08682, allocations: 225.5 kB / 448.7 MB, free: 8.984 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.08683, allocations: 4.062 kB / 448.7 MB, free: 8.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.242e-05/0.08686, allocations: 4 kB / 448.7 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.08686, allocations: 0 / 448.7 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.08688, allocations: 4 kB / 448.7 MB, free: 8.973 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.08689, allocations: 3.984 kB / 448.7 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.08689, allocations: 0 / 448.7 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001821/0.08708, allocations: 166.4 kB / 448.8 MB, free: 8.781 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.669e-05/0.08714, allocations: 100.9 kB / 448.9 MB, free: 8.664 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.692e-05/0.08718, allocations: 8.047 kB / 449 MB, free: 8.656 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.872e-05/0.08724, allocations: 8 kB / 449 MB, free: 8.648 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.546e-05/0.08728, allocations: 7.938 kB / 449 MB, free: 8.641 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.0873, allocations: 15.86 kB / 449 MB, free: 8.625 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001305/0.08744, allocations: 192.5 kB / 449.2 MB, free: 8.438 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08744, allocations: 0 / 449.2 MB, free: 8.438 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002245/0.08767, allocations: 31.98 kB / 449.2 MB, free: 8.406 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007488/0.08843, allocations: 418.1 kB / 449.6 MB, free: 7.992 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001718/0.08861, allocations: 63.91 kB / 449.7 MB, free: 7.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.08862, allocations: 0 / 449.7 MB, free: 7.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.97e-05/0.08869, allocations: 36.05 kB / 449.7 MB, free: 7.895 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003611/0.08906, allocations: 48.78 kB / 449.8 MB, free: 7.848 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004338/0.0895, allocations: 384.2 kB / 450.1 MB, free: 7.434 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001294/0.08964, allocations: 0.7283 MB / 450.9 MB, free: 6.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.447e-05/0.08968, allocations: 15.44 kB / 450.9 MB, free: 6.664 MB / 298.7 MB Notification: Performance of SimCode: time 9.22e-07/0.08969, allocations: 0 / 450.9 MB, free: 6.664 MB / 298.7 MB Notification: Performance of Templates: time 0.003395/0.09309, allocations: 2.594 MB / 453.5 MB, free: 4.066 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches