Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|sum.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001241/0.001241, allocations: 174.3 kB / 16.76 MB, free: 5.051 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.303/1.303, allocations: 205 MB / 222.5 MB, free: 9.152 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.0006846/0.0006847, allocations: 89.67 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.06667/0.06667, allocations: 12.56 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003316/0.0003316, allocations: 16 kB / 391.7 MB, free: 66.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06887/0.06922, allocations: 49.98 MB / 441.7 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.001746/0.071, allocations: 1.672 MB / 443.4 MB, free: 14.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001299/0.07232, allocations: 1.112 MB / 444.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.07244, allocations: 7.938 kB / 444.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000274/0.07272, allocations: 55.8 kB / 444.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001882/0.07292, allocations: 83.72 kB / 444.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006146/0.07354, allocations: 255.5 kB / 444.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001734/0.07373, allocations: 199.4 kB / 445.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001037/0.07384, allocations: 41.66 kB / 445.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.394e-05/0.07393, allocations: 75.58 kB / 445.2 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001061/0.07404, allocations: 103.6 kB / 445.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.338e-05/0.07407, allocations: 4 kB / 445.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.07419, allocations: 47.92 kB / 445.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.159e-05/0.07426, allocations: 63.73 kB / 445.4 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.845e-05/0.07433, allocations: 87.36 kB / 445.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001784/0.07452, allocations: 203.8 kB / 445.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.07453, allocations: 0 / 445.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.07454, allocations: 0 / 445.7 MB, free: 12.39 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.207e-06/0.07455, allocations: 0 / 445.7 MB, free: 12.39 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000568/0.07512, allocations: 0.5389 MB / 446.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.98e-05/0.07516, allocations: 8.031 kB / 446.2 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.587e-05/0.07522, allocations: 32.56 kB / 446.3 MB, free: 11.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.07548, allocations: 303.4 kB / 446.5 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.266e-05/0.07551, allocations: 20.36 kB / 446.6 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.434e-05/0.07554, allocations: 20.06 kB / 446.6 MB, free: 11.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004346/0.07598, allocations: 319.1 kB / 446.9 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.076, allocations: 0 / 446.9 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.07603, allocations: 8 kB / 446.9 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.07604, allocations: 4 kB / 446.9 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001416/0.07618, allocations: 67.89 kB / 447 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003829/0.07657, allocations: 422.2 kB / 447.4 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003023/0.07689, allocations: 192 kB / 447.6 MB, free: 10.28 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.07702, allocations: 90.72 kB / 447.7 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.936e-05/0.07706, allocations: 15.97 kB / 447.7 MB, free: 10.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001363/0.0772, allocations: 83.33 kB / 447.8 MB, free: 10.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.784e-06/0.07722, allocations: 0 / 447.8 MB, free: 10.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004407/0.07766, allocations: 245.2 kB / 448 MB, free: 9.828 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.831e-05/0.07773, allocations: 182.1 kB / 448.2 MB, free: 9.613 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/0.07798, allocations: 335 kB / 448.5 MB, free: 9.277 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.663e-05/0.078, allocations: 33.7 kB / 448.5 MB, free: 9.238 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.758e-05/0.07806, allocations: 136.6 kB / 448.7 MB, free: 9.098 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.481e-05/0.0781, allocations: 31.67 kB / 448.7 MB, free: 9.066 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.051e-05/0.07813, allocations: 29.7 kB / 448.7 MB, free: 9.031 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.31e-05/0.07819, allocations: 342.8 kB / 449.1 MB, free: 8.688 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.049e-05/0.07828, allocations: 40.45 kB / 449.1 MB, free: 8.648 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001214/0.07841, allocations: 190.9 kB / 449.3 MB, free: 8.398 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001928/0.07861, allocations: 211.2 kB / 449.5 MB, free: 8.137 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.07862, allocations: 4 kB / 449.5 MB, free: 8.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003049/0.07893, allocations: 233.2 kB / 449.7 MB, free: 7.898 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.07895, allocations: 8 kB / 449.7 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.07896, allocations: 4 kB / 449.7 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.07898, allocations: 8 kB / 449.7 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.07912, allocations: 43.86 kB / 449.8 MB, free: 7.836 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.398e-06/0.07914, allocations: 11.92 kB / 449.8 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001032/0.07924, allocations: 15.84 kB / 449.8 MB, free: 7.809 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.433e-05/0.07927, allocations: 16 kB / 449.8 MB, free: 7.793 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001236/0.0794, allocations: 181.1 kB / 450 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001609/0.07956, allocations: 137.6 kB / 450.1 MB, free: 7.469 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.832e-05/0.07963, allocations: 37.73 kB / 450.2 MB, free: 7.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.07964, allocations: 4 kB / 450.2 MB, free: 7.426 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.07965, allocations: 3.938 kB / 450.2 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.07966, allocations: 96 / 450.2 MB, free: 7.422 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001506/0.07981, allocations: 269.7 kB / 450.5 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.07983, allocations: 0 / 450.5 MB, free: 7.109 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001121/0.07994, allocations: 35.98 kB / 450.5 MB, free: 7.074 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.07996, allocations: 4 kB / 450.5 MB, free: 7.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.43e-05/0.07997, allocations: 3.984 kB / 450.5 MB, free: 7.066 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.07998, allocations: 4 kB / 450.5 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.07999, allocations: 7.875 kB / 450.5 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003034/0.0803, allocations: 242.7 kB / 450.7 MB, free: 6.793 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.449e-05/0.08039, allocations: 124.7 kB / 450.9 MB, free: 6.652 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.08044, allocations: 8.047 kB / 450.9 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.209e-05/0.08052, allocations: 15.97 kB / 450.9 MB, free: 6.629 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.856e-05/0.08058, allocations: 7.938 kB / 450.9 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.08061, allocations: 15.98 kB / 450.9 MB, free: 6.605 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001823/0.0808, allocations: 245.9 kB / 451.2 MB, free: 6.367 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.08081, allocations: 0 / 451.2 MB, free: 6.367 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002872/0.0811, allocations: 51.98 kB / 451.2 MB, free: 6.316 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.0008268/0.08193, allocations: 441.7 kB / 451.6 MB, free: 5.879 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002629/0.08221, allocations: 143.8 kB / 451.8 MB, free: 5.738 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.08222, allocations: 5.062 kB / 451.8 MB, free: 5.734 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.874e-05/0.08229, allocations: 31.92 kB / 451.8 MB, free: 5.703 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004476/0.08275, allocations: 120.8 kB / 451.9 MB, free: 5.582 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000592/0.08335, allocations: 0.5367 MB / 452.5 MB, free: 5.012 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001658/0.08353, allocations: 0.7717 MB / 453.2 MB, free: 4.215 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.151e-05/0.08359, allocations: 27.42 kB / 453.3 MB, free: 4.188 MB / 298.7 MB Notification: Performance of SimCode: time 3.21e-07/0.0836, allocations: 0 / 453.3 MB, free: 4.188 MB / 298.7 MB Notification: Performance of Templates: time 0.004346/0.08795, allocations: 3.57 MB / 456.8 MB, free: 0.6055 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches