Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.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.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|backSample1.y|sample.y|shiftSample1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007071/0.0007072, allocations: 101.6 kB / 16.07 MB, free: 32 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.0007448/0.0007449, allocations: 181.4 kB / 16.96 MB, free: 6.879 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.245/1.245, allocations: 205.4 MB / 223.1 MB, free: 5.523 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.06197/0.06197, allocations: 12.61 MB / 284 MB, free: 8.574 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.0006517/0.0006516, allocations: 24 kB / 345.2 MB, free: 20.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07411/0.07477, allocations: 50.39 MB / 395.6 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.002057/0.07686, allocations: 1.603 MB / 397.2 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001542/0.07842, allocations: 1.049 MB / 398.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.852e-05/0.07853, allocations: 3.938 kB / 398.2 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002758/0.07881, allocations: 63.8 kB / 398.3 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001995/0.07902, allocations: 79.72 kB / 398.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005741/0.07961, allocations: 215.6 kB / 398.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001923/0.07981, allocations: 167.5 kB / 398.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.07993, allocations: 33.53 kB / 398.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.63e-05/0.08003, allocations: 67.64 kB / 398.8 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.867e-05/0.08014, allocations: 75.56 kB / 398.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.08017, allocations: 8 kB / 398.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/0.08028, allocations: 51.97 kB / 399 MB, free: 14.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.944e-05/0.08037, allocations: 47.83 kB / 399 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.873e-05/0.08045, allocations: 101.1 kB / 399.1 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002481/0.08071, allocations: 239.4 kB / 399.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.08072, allocations: 0 / 399.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.08073, allocations: 0 / 399.3 MB, free: 14.61 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.717e-06/0.08073, allocations: 0 / 399.3 MB, free: 14.61 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005765/0.08131, allocations: 0.5001 MB / 399.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.999e-05/0.08135, allocations: 16.03 kB / 399.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.63e-05/0.08142, allocations: 28.56 kB / 399.9 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002942/0.08172, allocations: 291.4 kB / 400.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.08174, allocations: 8.375 kB / 400.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/0.08176, allocations: 8.125 kB / 400.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.08209, allocations: 176.4 kB / 400.3 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.446e-06/0.08211, allocations: 3.938 kB / 400.4 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.08213, allocations: 4 kB / 400.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-06/0.08214, allocations: 4 kB / 400.4 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001057/0.08225, allocations: 39.91 kB / 400.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004634/0.08272, allocations: 399.2 kB / 400.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002383/0.08297, allocations: 138.5 kB / 400.9 MB, free: 12.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.104e-05/0.08307, allocations: 63.36 kB / 401 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.0831, allocations: 0 / 401 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001845/0.08329, allocations: 83.38 kB / 401.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.283e-06/0.0833, allocations: 0 / 401.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003533/0.08366, allocations: 165.2 kB / 401.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.115e-05/0.08376, allocations: 191.9 kB / 401.4 MB, free: 12.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003015/0.08407, allocations: 335 kB / 401.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.772e-05/0.0841, allocations: 33.7 kB / 401.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.208e-05/0.08417, allocations: 124.4 kB / 401.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.356e-05/0.0842, allocations: 23.73 kB / 401.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.08424, allocations: 17.72 kB / 401.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.08436, allocations: 342.8 kB / 402.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.461e-05/0.08443, allocations: 23.98 kB / 402.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.08455, allocations: 100.6 kB / 402.4 MB, free: 11.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001526/0.08471, allocations: 110.1 kB / 402.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.08472, allocations: 0 / 402.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002289/0.08495, allocations: 137.2 kB / 402.6 MB, free: 10.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.08498, allocations: 8 kB / 402.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.08499, allocations: 0 / 402.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.085, allocations: 7.938 kB / 402.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.08511, allocations: 24.11 kB / 402.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.672e-06/0.08512, allocations: 8 kB / 402.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.571e-05/0.0852, allocations: 11.94 kB / 402.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.006e-06/0.08522, allocations: 4 kB / 402.7 MB, free: 10.85 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.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 (13): * Single equations (assignments): 13 * 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.0001269/0.08535, allocations: 157.8 kB / 402.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.081e-05/0.08545, allocations: 81.34 kB / 402.9 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.884e-05/0.08551, allocations: 25.72 kB / 403 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.08552, allocations: 12.11 kB / 403 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.08553, allocations: 4 kB / 403 MB, free: 10.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.08554, allocations: 3.938 kB / 403 MB, free: 10.55 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001929/0.08574, allocations: 245.5 kB / 403.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.08575, allocations: 4 kB / 403.2 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.717e-05/0.08582, allocations: 15.98 kB / 403.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.08583, allocations: 0 / 403.2 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.08585, allocations: 8 kB / 403.2 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.08585, allocations: 3.984 kB / 403.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.08586, allocations: 0 / 403.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002532/0.08612, allocations: 191.2 kB / 403.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.018e-05/0.08622, allocations: 116.8 kB / 403.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.819e-05/0.08625, allocations: 4 kB / 403.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.648e-05/0.08632, allocations: 4 kB / 403.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.854e-05/0.08637, allocations: 15.98 kB / 403.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.08639, allocations: 12 kB / 403.6 MB, free: 9.852 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002117/0.08661, allocations: 245.9 kB / 403.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08662, allocations: 0 / 403.8 MB, free: 9.609 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002514/0.08687, allocations: 36 kB / 403.9 MB, free: 9.574 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (11): * Single equations (assignments): 9 * 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.0008198/0.0877, allocations: 427.7 kB / 404.3 MB, free: 9.145 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002115/0.08792, allocations: 84.09 kB / 404.4 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.08793, allocations: 0 / 404.4 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.113e-05/0.08801, allocations: 27.98 kB / 404.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004161/0.08843, allocations: 77.73 kB / 404.5 MB, free: 8.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005451/0.08899, allocations: 445.6 kB / 404.9 MB, free: 8.492 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.08927, allocations: 0.7401 MB / 405.6 MB, free: 7.727 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.64e-05/0.08937, allocations: 29.53 kB / 405.7 MB, free: 7.695 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.284e-05/0.08941, allocations: 19.44 kB / 405.7 MB, free: 7.68 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.08942, allocations: 0 / 405.7 MB, free: 7.68 MB / 302.1 MB Notification: Performance of Templates: time 0.005436/0.09486, allocations: 2.907 MB / 408.6 MB, free: 4.766 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches