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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007282/0.0007282, allocations: 96.78 kB / 16.06 MB, free: 40 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008406/0.0008407, allocations: 182.2 kB / 16.96 MB, free: 6.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.206/1.206, allocations: 205.4 MB / 223.1 MB, free: 5.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06196/0.06196, allocations: 12.6 MB / 284 MB, free: 8.586 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006391/0.0006391, allocations: 20 kB / 345.2 MB, free: 20.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08789/0.08854, allocations: 50.38 MB / 395.5 MB, free: 2.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample): time 0.002275/0.09086, allocations: 1.587 MB / 397.1 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001525/0.09242, allocations: 0.937 MB / 398.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.0926, allocations: 4 kB / 398.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005526/0.09317, allocations: 147.6 kB / 398.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.09343, allocations: 107.6 kB / 398.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004738/0.09392, allocations: 155.6 kB / 398.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002151/0.09414, allocations: 179.6 kB / 398.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001072/0.09426, allocations: 33.34 kB / 398.7 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.09437, allocations: 67.64 kB / 398.7 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.09447, allocations: 67.62 kB / 398.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.817e-05/0.0945, allocations: 4 kB / 398.8 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001281/0.09463, allocations: 43.98 kB / 398.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.981e-05/0.0947, allocations: 39.83 kB / 398.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.635e-05/0.09479, allocations: 89.25 kB / 399 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002213/0.09501, allocations: 187.3 kB / 399.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.09503, allocations: 0 / 399.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.09504, allocations: 3.938 kB / 399.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.797e-06/0.09505, allocations: 8 kB / 399.2 MB, free: 14.76 MB / 302.1 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.0005851/0.09564, allocations: 480.3 kB / 399.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.09568, allocations: 12.03 kB / 399.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.035e-05/0.09573, allocations: 24.73 kB / 399.7 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002776/0.09601, allocations: 262.8 kB / 399.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.09604, allocations: 384 / 399.9 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.856e-05/0.09606, allocations: 12.12 kB / 400 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002718/0.09634, allocations: 150.7 kB / 400.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.645e-06/0.09636, allocations: 0 / 400.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.09638, allocations: 4 kB / 400.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.09639, allocations: 4 kB / 400.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.638e-05/0.09649, allocations: 35.91 kB / 400.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004008/0.0969, allocations: 358.4 kB / 400.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.09711, allocations: 111.9 kB / 400.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.536e-05/0.09719, allocations: 42.56 kB / 400.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.241e-05/0.09722, allocations: 7.922 kB / 400.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000143/0.09737, allocations: 79.33 kB / 400.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.332e-06/0.09738, allocations: 0 / 400.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003069/0.09769, allocations: 137.3 kB / 400.9 MB, free: 12.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.134e-05/0.09778, allocations: 144.4 kB / 401 MB, free: 12.67 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002373/0.09802, allocations: 261 kB / 401.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.09805, allocations: 29.69 kB / 401.3 MB, free: 12.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.006e-05/0.09812, allocations: 120.4 kB / 401.4 MB, free: 12.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.386e-05/0.09816, allocations: 23.88 kB / 401.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.798e-05/0.09819, allocations: 21.7 kB / 401.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.0983, allocations: 330.8 kB / 401.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.785e-05/0.09836, allocations: 23.98 kB / 401.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.178e-05/0.09845, allocations: 66 kB / 401.9 MB, free: 11.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001273/0.09858, allocations: 76.5 kB / 401.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.0986, allocations: 0 / 401.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001956/0.0988, allocations: 117.4 kB / 402.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.09883, allocations: 13.36 kB / 402.1 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.491e-06/0.09884, allocations: 4 kB / 402.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.09885, allocations: 0 / 402.1 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.807e-05/0.09893, allocations: 12 kB / 402.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.09894, allocations: 3.938 kB / 402.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.89e-05/0.09901, allocations: 19.83 kB / 402.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.09903, allocations: 4 kB / 402.1 MB, free: 11.49 MB / 302.1 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 0.000109/0.09915, allocations: 141.8 kB / 402.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.075e-05/0.09922, allocations: 65.45 kB / 402.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.339e-05/0.09927, allocations: 21.7 kB / 402.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.09929, allocations: 3.938 kB / 402.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.0993, allocations: 4 kB / 402.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.0993, allocations: 3.938 kB / 402.3 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001631/0.09947, allocations: 217.6 kB / 402.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.09948, allocations: 7.922 kB / 402.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.516e-05/0.09951, allocations: 8 kB / 402.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.09952, allocations: 4 kB / 402.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.09954, allocations: 64 / 402.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.09954, allocations: 4 kB / 402.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.09955, allocations: 4 kB / 402.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002111/0.09977, allocations: 158.4 kB / 402.7 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.096e-05/0.09986, allocations: 104.9 kB / 402.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.701e-05/0.09989, allocations: 4 kB / 402.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.28e-05/0.09996, allocations: 11.98 kB / 402.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.792e-05/0.1, allocations: 4 kB / 402.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.1, allocations: 19.92 kB / 402.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001633/0.1002, allocations: 188.5 kB / 403.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1002, allocations: 0 / 403.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002316/0.1004, allocations: 31.98 kB / 403.1 MB, free: 10.4 MB / 302.1 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.0007924/0.1012, allocations: 407.8 kB / 403.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001798/0.1014, allocations: 71.91 kB / 403.6 MB, free: 9.918 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1014, allocations: 3.938 kB / 403.6 MB, free: 9.914 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.465e-05/0.1015, allocations: 31.92 kB / 403.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.1019, allocations: 53.28 kB / 403.6 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004555/0.1024, allocations: 344.4 kB / 404 MB, free: 9.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002498/0.1026, allocations: 0.7361 MB / 404.7 MB, free: 8.703 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.769e-05/0.1027, allocations: 25.52 kB / 404.7 MB, free: 8.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.907e-05/0.1027, allocations: 19.42 kB / 404.8 MB, free: 8.66 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1027, allocations: 3.938 kB / 404.8 MB, free: 8.656 MB / 302.1 MB Notification: Performance of Templates: time 0.004955/0.1077, allocations: 2.319 MB / 407.1 MB, free: 6.332 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches