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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.0009028/0.0009078, allocations: 175.8 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.256/1.256, allocations: 205.4 MB / 222.6 MB, free: 9.105 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.0007251/0.0007248, allocations: 89.27 kB / 270.9 MB, free: 8.352 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.06312/0.06312, allocations: 12.6 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003954/0.0003955, allocations: 16 kB / 392.7 MB, free: 66.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07042/0.07083, allocations: 50.37 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.002211/0.0731, allocations: 1.571 MB / 444.6 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.07471, allocations: 1.015 MB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.07487, allocations: 7.938 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003003/0.07518, allocations: 59.8 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002532/0.07545, allocations: 71.72 kB / 445.8 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007352/0.0762, allocations: 207.6 kB / 446 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002018/0.07642, allocations: 155.5 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001185/0.07655, allocations: 29.55 kB / 446.1 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.07666, allocations: 67.64 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.07678, allocations: 63.69 kB / 446.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.07682, allocations: 4 kB / 446.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.07697, allocations: 55.95 kB / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.709e-05/0.07704, allocations: 39.84 kB / 446.4 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.858e-05/0.0771, allocations: 53.58 kB / 446.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002156/0.07732, allocations: 179.8 kB / 446.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.07734, allocations: 0 / 446.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.07735, allocations: 4 kB / 446.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.887e-06/0.07737, allocations: 3.938 kB / 446.6 MB, free: 12.2 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.0006148/0.07799, allocations: 0.5077 MB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.07804, allocations: 12.02 kB / 447.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.79e-05/0.07811, allocations: 27.62 kB / 447.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003611/0.07848, allocations: 278.5 kB / 447.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.278e-05/0.07852, allocations: 8 kB / 447.4 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.075e-05/0.07855, allocations: 4 kB / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003905/0.07895, allocations: 184.3 kB / 447.6 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.07897, allocations: 3.984 kB / 447.6 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.079, allocations: 0 / 447.6 MB, free: 11.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.493e-06/0.07901, allocations: 4 kB / 447.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001408/0.07916, allocations: 43.92 kB / 447.7 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005307/0.0797, allocations: 391.2 kB / 448 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002835/0.08, allocations: 146.5 kB / 448.2 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.08013, allocations: 55.42 kB / 448.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.08016, allocations: 8 kB / 448.2 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/0.08038, allocations: 87.38 kB / 448.3 MB, free: 10.22 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 2.995e-06/0.0804, allocations: 0 / 448.3 MB, free: 10.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004709/0.08088, allocations: 169.6 kB / 448.5 MB, free: 10.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.426e-05/0.08095, allocations: 199.8 kB / 448.7 MB, free: 9.809 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003655/0.08132, allocations: 334.6 kB / 449 MB, free: 9.473 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.631e-05/0.08135, allocations: 25.7 kB / 449 MB, free: 9.441 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.564e-05/0.08144, allocations: 128.4 kB / 449.2 MB, free: 9.312 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.803e-05/0.08147, allocations: 23.73 kB / 449.2 MB, free: 9.289 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.702e-06/0.08149, allocations: 0 / 449.2 MB, free: 9.289 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.228e-05/0.08156, allocations: 334.8 kB / 449.5 MB, free: 8.953 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.727e-05/0.08166, allocations: 31.98 kB / 449.6 MB, free: 8.922 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.08179, allocations: 96.52 kB / 449.6 MB, free: 8.797 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.08191, allocations: 35.98 kB / 449.7 MB, free: 8.762 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.08192, allocations: 0 / 449.7 MB, free: 8.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002816/0.08221, allocations: 133.3 kB / 449.8 MB, free: 8.625 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.08224, allocations: 8 kB / 449.8 MB, free: 8.617 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.08226, allocations: 3.938 kB / 449.8 MB, free: 8.613 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.08228, allocations: 8.188 kB / 449.8 MB, free: 8.605 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.08243, allocations: 19.98 kB / 449.8 MB, free: 8.586 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.08245, allocations: 4 kB / 449.9 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001171/0.08258, allocations: 11.86 kB / 449.9 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.0826, allocations: 8 kB / 449.9 MB, free: 8.562 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,table.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001382/0.08275, allocations: 158.4 kB / 450 MB, free: 8.398 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000106/0.08287, allocations: 77.36 kB / 450.1 MB, free: 8.316 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.475e-05/0.08294, allocations: 33.8 kB / 450.1 MB, free: 8.285 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.08296, allocations: 3.938 kB / 450.1 MB, free: 8.281 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.08297, allocations: 7.984 kB / 450.1 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.08299, allocations: 0 / 450.1 MB, free: 8.273 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.0832, allocations: 245.5 kB / 450.4 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.08321, allocations: 4 kB / 450.4 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.541e-05/0.08332, allocations: 16.3 kB / 450.4 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.568e-06/0.08333, allocations: 0 / 450.4 MB, free: 7.965 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.08335, allocations: 11.94 kB / 450.4 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.08336, allocations: 0 / 450.4 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.08339, allocations: 11.92 kB / 450.4 MB, free: 7.941 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002983/0.08369, allocations: 175.3 kB / 450.6 MB, free: 7.742 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.702e-05/0.0838, allocations: 120.8 kB / 450.7 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.087e-05/0.08385, allocations: 4 kB / 450.7 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.08397, allocations: 8 kB / 450.7 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.728e-05/0.08404, allocations: 7.984 kB / 450.7 MB, free: 7.586 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.08407, allocations: 12 kB / 450.8 MB, free: 7.574 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000171/0.08424, allocations: 241.9 kB / 451 MB, free: 7.336 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.08425, allocations: 4 kB / 451 MB, free: 7.332 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002609/0.08452, allocations: 32 kB / 451 MB, free: 7.301 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,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 (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.000791/0.08531, allocations: 437.1 kB / 451.4 MB, free: 6.863 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002166/0.08554, allocations: 79.91 kB / 451.5 MB, free: 6.785 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.08556, allocations: 0 / 451.5 MB, free: 6.785 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.611e-05/0.08563, allocations: 31.92 kB / 451.6 MB, free: 6.754 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.08603, allocations: 76.78 kB / 451.6 MB, free: 6.676 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005329/0.08657, allocations: 463.6 kB / 452.1 MB, free: 6.188 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001497/0.08674, allocations: 0.7439 MB / 452.8 MB, free: 5.418 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.675e-05/0.08679, allocations: 27.42 kB / 452.9 MB, free: 5.395 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.0868, allocations: 0 / 452.9 MB, free: 5.395 MB / 298.7 MB Notification: Performance of Templates: time 0.003784/0.09059, allocations: 3.055 MB / 455.9 MB, free: 2.332 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample.makefile (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) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/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