Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.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.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008831/0.0008832, allocations: 173.6 kB / 16.8 MB, free: 5.012 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.345/1.345, allocations: 205.4 MB / 223 MB, free: 9.016 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.0007324/0.0007324, allocations: 93.5 kB / 271.3 MB, free: 8.246 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.06954/0.06954, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003437/0.0003438, allocations: 12 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07657/0.07693, allocations: 50.38 MB / 443.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.001959/0.07895, allocations: 1.614 MB / 445.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.08018, allocations: 0.9598 MB / 446.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.986e-05/0.0803, allocations: 7.938 kB / 446.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005317/0.08084, allocations: 147.7 kB / 446.4 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002109/0.08106, allocations: 95.69 kB / 446.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.08147, allocations: 167.6 kB / 446.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001734/0.08166, allocations: 191.5 kB / 446.9 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.08177, allocations: 33.97 kB / 446.9 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.04e-05/0.08186, allocations: 75.56 kB / 447 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.517e-05/0.08197, allocations: 67.69 kB / 447 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.08199, allocations: 4 kB / 447 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000105/0.08211, allocations: 43.92 kB / 447.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.223e-05/0.08218, allocations: 39.83 kB / 447.1 MB, free: 11.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.616e-05/0.08225, allocations: 93.19 kB / 447.2 MB, free: 11.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001682/0.08242, allocations: 151.7 kB / 447.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.08243, allocations: 4 kB / 447.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.08244, allocations: 0 / 447.4 MB, free: 11.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.08245, allocations: 0 / 447.4 MB, free: 11.73 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005529/0.08301, allocations: 496.3 kB / 447.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.08305, allocations: 8.031 kB / 447.9 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.508e-05/0.0831, allocations: 24.59 kB / 447.9 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000257/0.08336, allocations: 274.8 kB / 448.1 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.08339, allocations: 4.375 kB / 448.2 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/0.08341, allocations: 16.12 kB / 448.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002863/0.0837, allocations: 180.8 kB / 448.3 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.08373, allocations: 0 / 448.3 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.08375, allocations: 4 kB / 448.3 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.08376, allocations: 4 kB / 448.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.402e-05/0.08386, allocations: 35.92 kB / 448.4 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003858/0.08425, allocations: 371.2 kB / 448.8 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001984/0.08446, allocations: 138.5 kB / 448.9 MB, free: 9.992 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.99e-05/0.08455, allocations: 59.42 kB / 448.9 MB, free: 9.922 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.08459, allocations: 8.047 kB / 449 MB, free: 9.914 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001488/0.08475, allocations: 79.33 kB / 449 MB, free: 9.824 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.644e-06/0.08476, allocations: 0 / 449 MB, free: 9.824 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003293/0.08509, allocations: 153.6 kB / 449.2 MB, free: 9.668 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.08516, allocations: 170.1 kB / 449.3 MB, free: 9.465 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002015/0.08537, allocations: 269 kB / 449.6 MB, free: 9.195 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.08539, allocations: 29.7 kB / 449.6 MB, free: 9.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.501e-05/0.08545, allocations: 120.3 kB / 449.8 MB, free: 9.039 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.08548, allocations: 19.83 kB / 449.8 MB, free: 9.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.151e-06/0.08549, allocations: 4 kB / 449.8 MB, free: 9.016 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.287e-05/0.08555, allocations: 330.9 kB / 450.1 MB, free: 8.684 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.576e-05/0.08561, allocations: 23.98 kB / 450.1 MB, free: 8.66 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.085e-05/0.08569, allocations: 83.66 kB / 450.2 MB, free: 8.551 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001128/0.08581, allocations: 97.91 kB / 450.3 MB, free: 8.434 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.08582, allocations: 0 / 450.3 MB, free: 8.434 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000212/0.08604, allocations: 133.3 kB / 450.4 MB, free: 8.297 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.08606, allocations: 4 kB / 450.4 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.08607, allocations: 0 / 450.4 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.08609, allocations: 4.312 kB / 450.4 MB, free: 8.289 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.436e-05/0.08617, allocations: 23.92 kB / 450.5 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.08618, allocations: 0 / 450.5 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.101e-05/0.08626, allocations: 15.94 kB / 450.5 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.929e-06/0.08628, allocations: 4 kB / 450.5 MB, free: 8.246 MB / 298.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 9.145e-05/0.08637, allocations: 150 kB / 450.6 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.469e-05/0.08645, allocations: 77.34 kB / 450.7 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.567e-05/0.08651, allocations: 25.7 kB / 450.7 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.08652, allocations: 0 / 450.7 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.08653, allocations: 4 kB / 450.7 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.08654, allocations: 3.938 kB / 450.7 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.08668, allocations: 233.5 kB / 451 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.08669, allocations: 0 / 451 MB, free: 7.699 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.623e-05/0.08672, allocations: 8.094 kB / 451 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.08673, allocations: 0 / 451 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.08674, allocations: 7.984 kB / 451 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.08675, allocations: 0 / 451 MB, free: 7.684 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.08676, allocations: 4 kB / 451 MB, free: 7.68 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001989/0.08696, allocations: 179.2 kB / 451.2 MB, free: 7.477 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.994e-05/0.08704, allocations: 108.9 kB / 451.3 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.88e-05/0.08708, allocations: 7.984 kB / 451.3 MB, free: 7.344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.551e-05/0.08715, allocations: 4 kB / 451.3 MB, free: 7.34 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.85e-05/0.0872, allocations: 8 kB / 451.3 MB, free: 7.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.08722, allocations: 11.92 kB / 451.3 MB, free: 7.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000142/0.08736, allocations: 196.5 kB / 451.5 MB, free: 7.133 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.08737, allocations: 0 / 451.5 MB, free: 7.133 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002449/0.08762, allocations: 32 kB / 451.5 MB, free: 7.102 MB / 298.7 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,sample.u,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.0008074/0.08844, allocations: 429.8 kB / 451.9 MB, free: 6.672 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000184/0.08863, allocations: 75.84 kB / 452 MB, free: 6.598 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.08864, allocations: 0 / 452 MB, free: 6.598 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.192e-05/0.08871, allocations: 31.92 kB / 452 MB, free: 6.566 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004176/0.08914, allocations: 76.94 kB / 452.1 MB, free: 6.488 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004806/0.08963, allocations: 414.4 kB / 452.5 MB, free: 6.043 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001409/0.08978, allocations: 0.7323 MB / 453.3 MB, free: 5.285 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.121e-05/0.08983, allocations: 19.44 kB / 453.3 MB, free: 5.27 MB / 298.7 MB Notification: Performance of SimCode: time 2.6e-07/0.08984, allocations: 0 / 453.3 MB, free: 5.27 MB / 298.7 MB Notification: Performance of Templates: time 0.003921/0.09376, allocations: 2.762 MB / 456 MB, free: 2.504 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches