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.0008794/0.0008794, allocations: 172.8 kB / 16.76 MB, free: 5.031 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.306/1.306, allocations: 205 MB / 222.6 MB, free: 9.141 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.0007148/0.0007147, allocations: 82.31 kB / 270.5 MB, free: 8.668 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.06159/0.06159, allocations: 12.56 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003119/0.000312, allocations: 15.98 kB / 391.7 MB, free: 66.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.064/0.06432, allocations: 49.98 MB / 441.7 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.BackSample): time 0.001632/0.066, allocations: 1.622 MB / 443.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001209/0.06722, allocations: 1.08 MB / 444.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.909e-05/0.06733, allocations: 4 kB / 444.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002579/0.06759, allocations: 59.8 kB / 444.4 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001844/0.06779, allocations: 79.73 kB / 444.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005041/0.0683, allocations: 219.6 kB / 444.7 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001465/0.06846, allocations: 163.5 kB / 444.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.169e-05/0.06856, allocations: 29.53 kB / 444.9 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.505e-05/0.06864, allocations: 71.58 kB / 445 MB, free: 13.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.927e-05/0.06873, allocations: 71.69 kB / 445.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.015e-05/0.06876, allocations: 4 kB / 445.1 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.06887, allocations: 55.89 kB / 445.1 MB, free: 12.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.469e-05/0.06894, allocations: 47.84 kB / 445.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.794e-05/0.069, allocations: 83.41 kB / 445.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.06917, allocations: 175.9 kB / 445.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.06918, allocations: 0 / 445.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.06919, allocations: 0 / 445.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.0692, allocations: 0 / 445.4 MB, free: 12.62 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.0004728/0.06968, allocations: 0.5079 MB / 445.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.72e-05/0.06971, allocations: 8.031 kB / 445.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.056e-05/0.06977, allocations: 32.56 kB / 446 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002407/0.07001, allocations: 291.5 kB / 446.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.668e-05/0.07004, allocations: 4.375 kB / 446.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.07006, allocations: 12.12 kB / 446.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002735/0.07034, allocations: 186.5 kB / 446.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.07036, allocations: 0 / 446.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.07038, allocations: 4 kB / 446.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.07038, allocations: 0 / 446.5 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.965e-05/0.07049, allocations: 39.92 kB / 446.5 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003617/0.07086, allocations: 403.1 kB / 446.9 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002013/0.07107, allocations: 146.5 kB / 447 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.707e-05/0.07116, allocations: 55.42 kB / 447.1 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.879e-05/0.07119, allocations: 0 / 447.1 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001587/0.07135, allocations: 91.25 kB / 447.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.593e-06/0.07136, allocations: 0 / 447.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003344/0.0717, allocations: 173.4 kB / 447.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.07176, allocations: 187.9 kB / 447.5 MB, free: 10.22 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.072, allocations: 330.7 kB / 447.9 MB, free: 9.887 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.232e-05/0.07202, allocations: 30.08 kB / 447.9 MB, free: 9.852 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.415e-05/0.07208, allocations: 128.4 kB / 448 MB, free: 9.723 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.915e-05/0.07211, allocations: 23.73 kB / 448 MB, free: 9.699 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/0.07213, allocations: 17.72 kB / 448.1 MB, free: 9.676 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.66e-05/0.07219, allocations: 338.8 kB / 448.4 MB, free: 9.336 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.195e-05/0.07225, allocations: 23.98 kB / 448.4 MB, free: 9.312 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.332e-05/0.07234, allocations: 104.5 kB / 448.5 MB, free: 9.18 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.07248, allocations: 106 kB / 448.6 MB, free: 9.055 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.07249, allocations: 0 / 448.6 MB, free: 9.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001952/0.07269, allocations: 141.2 kB / 448.7 MB, free: 8.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.083e-05/0.07271, allocations: 4 kB / 448.8 MB, free: 8.906 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.07272, allocations: 3.984 kB / 448.8 MB, free: 8.902 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.07273, allocations: 4 kB / 448.8 MB, free: 8.898 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.897e-05/0.07284, allocations: 16 kB / 448.8 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.07285, allocations: 12.17 kB / 448.8 MB, free: 8.871 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.323e-05/0.07293, allocations: 7.938 kB / 448.8 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.07295, allocations: 8 kB / 448.8 MB, free: 8.855 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 ($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 9.337e-05/0.07305, allocations: 158.7 kB / 449 MB, free: 8.691 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.952e-05/0.07313, allocations: 77.34 kB / 449 MB, free: 8.609 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.07319, allocations: 29.7 kB / 449.1 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.736e-06/0.07319, allocations: 4 kB / 449.1 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.0732, allocations: 4.094 kB / 449.1 MB, free: 8.574 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.07321, allocations: 3.938 kB / 449.1 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001324/0.07335, allocations: 257.5 kB / 449.3 MB, free: 8.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.07336, allocations: 3.938 kB / 449.3 MB, free: 8.266 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.434e-05/0.07343, allocations: 15.98 kB / 449.3 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.07344, allocations: 0 / 449.3 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.07345, allocations: 4 kB / 449.4 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.624e-06/0.07346, allocations: 3.938 kB / 449.4 MB, free: 8.242 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.07346, allocations: 4 kB / 449.4 MB, free: 8.238 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002143/0.07368, allocations: 179.3 kB / 449.5 MB, free: 8.035 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.523e-05/0.07376, allocations: 116.8 kB / 449.6 MB, free: 7.902 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.062e-05/0.0738, allocations: 8.062 kB / 449.7 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.653e-05/0.07387, allocations: 11.98 kB / 449.7 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.149e-05/0.07392, allocations: 4 kB / 449.7 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.07394, allocations: 15.92 kB / 449.7 MB, free: 7.863 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001613/0.0741, allocations: 245.9 kB / 449.9 MB, free: 7.621 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.07411, allocations: 0 / 449.9 MB, free: 7.621 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002368/0.07435, allocations: 43.92 kB / 450 MB, free: 7.578 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 (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.00076/0.07512, allocations: 412.3 kB / 450.4 MB, free: 7.168 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001922/0.07532, allocations: 88.2 kB / 450.5 MB, free: 7.082 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.07534, allocations: 4.062 kB / 450.5 MB, free: 7.078 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.775e-05/0.07541, allocations: 31.92 kB / 450.5 MB, free: 7.047 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.07585, allocations: 76.83 kB / 450.6 MB, free: 6.969 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000469/0.07633, allocations: 469.6 kB / 451 MB, free: 6.473 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001254/0.07646, allocations: 0.744 MB / 451.8 MB, free: 5.703 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.943e-05/0.07651, allocations: 19.44 kB / 451.8 MB, free: 5.688 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.07652, allocations: 0 / 451.8 MB, free: 5.688 MB / 298.7 MB Notification: Performance of Templates: time 0.003742/0.08026, allocations: 3.066 MB / 454.9 MB, free: 2.617 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