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.001234/0.001234, allocations: 172.9 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.422/1.422, allocations: 205.4 MB / 223 MB, free: 9.008 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.000732/0.0007319, allocations: 85.5 kB / 271.3 MB, free: 8.242 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.0676/0.0676, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003599, allocations: 12 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08341/0.08379, allocations: 50.38 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample): time 0.002253/0.08609, allocations: 1.657 MB / 445.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001594/0.08772, allocations: 1.084 MB / 446.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.08786, allocations: 8 kB / 446.4 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003351/0.0882, allocations: 59.73 kB / 446.5 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002066/0.08842, allocations: 83.72 kB / 446.6 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006901/0.08912, allocations: 243.5 kB / 446.8 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002037/0.08934, allocations: 207.4 kB / 447 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.08947, allocations: 33.67 kB / 447.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.569e-05/0.08957, allocations: 79.58 kB / 447.1 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001549/0.08974, allocations: 99.58 kB / 447.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.579e-05/0.08977, allocations: 4 kB / 447.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001357/0.08991, allocations: 47.97 kB / 447.3 MB, free: 11.81 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.815e-05/0.09, allocations: 67.69 kB / 447.3 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.096e-05/0.09009, allocations: 109.1 kB / 447.5 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002006/0.0903, allocations: 207.8 kB / 447.7 MB, free: 11.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.09031, allocations: 4 kB / 447.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.09032, allocations: 0 / 447.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.09033, allocations: 0 / 447.7 MB, free: 11.42 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.0007056/0.09104, allocations: 0.5312 MB / 448.2 MB, free: 10.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.09108, allocations: 8.031 kB / 448.2 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.523e-05/0.09114, allocations: 36.56 kB / 448.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000274/0.09142, allocations: 299.5 kB / 448.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.09145, allocations: 16.3 kB / 448.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.447e-05/0.09148, allocations: 24.11 kB / 448.6 MB, free: 10.42 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004778/0.09197, allocations: 323 kB / 448.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.09199, allocations: 4 kB / 448.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.875e-05/0.09201, allocations: 11.98 kB / 448.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.09203, allocations: 0 / 448.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001501/0.09218, allocations: 63.97 kB / 449 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004428/0.09263, allocations: 414.2 kB / 449.4 MB, free: 9.539 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003027/0.09295, allocations: 199.9 kB / 449.6 MB, free: 9.316 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.09309, allocations: 94.47 kB / 449.7 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.09314, allocations: 16.22 kB / 449.7 MB, free: 9.199 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001642/0.09331, allocations: 71.38 kB / 449.7 MB, free: 9.117 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.034e-06/0.09332, allocations: 0 / 449.7 MB, free: 9.117 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004724/0.0938, allocations: 253.2 kB / 450 MB, free: 8.863 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.619e-05/0.09387, allocations: 174.1 kB / 450.2 MB, free: 8.656 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002538/0.09414, allocations: 343 kB / 450.5 MB, free: 8.312 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.141e-05/0.09417, allocations: 33.7 kB / 450.5 MB, free: 8.273 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.007e-05/0.09424, allocations: 136.5 kB / 450.7 MB, free: 8.133 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.348e-05/0.09428, allocations: 31.69 kB / 450.7 MB, free: 8.102 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.496e-06/0.0943, allocations: 4 kB / 450.7 MB, free: 8.098 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.869e-05/0.09436, allocations: 342.8 kB / 451 MB, free: 7.754 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.98e-05/0.09445, allocations: 44.44 kB / 451.1 MB, free: 7.711 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001238/0.09458, allocations: 182.9 kB / 451.2 MB, free: 7.469 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001958/0.09478, allocations: 211.2 kB / 451.5 MB, free: 7.207 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.09479, allocations: 0 / 451.5 MB, free: 7.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003115/0.09511, allocations: 237.4 kB / 451.7 MB, free: 6.969 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.09514, allocations: 8 kB / 451.7 MB, free: 6.961 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.09515, allocations: 4.312 kB / 451.7 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.09517, allocations: 7.938 kB / 451.7 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001427/0.09532, allocations: 43.91 kB / 451.7 MB, free: 6.906 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.09534, allocations: 11.88 kB / 451.8 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001132/0.09546, allocations: 19.84 kB / 451.8 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.09549, allocations: 19.98 kB / 451.8 MB, free: 6.855 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.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.0001411/0.09563, allocations: 180.9 kB / 452 MB, free: 6.672 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.09581, allocations: 133.7 kB / 452.1 MB, free: 6.535 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.656e-05/0.09588, allocations: 29.83 kB / 452.1 MB, free: 6.504 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.09589, allocations: 7.938 kB / 452.1 MB, free: 6.496 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/0.09591, allocations: 7.938 kB / 452.2 MB, free: 6.488 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.09592, allocations: 8.016 kB / 452.2 MB, free: 6.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001758/0.0961, allocations: 257.5 kB / 452.4 MB, free: 6.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.09611, allocations: 0 / 452.4 MB, free: 6.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/0.09624, allocations: 31.92 kB / 452.4 MB, free: 6.148 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.09625, allocations: 4 kB / 452.4 MB, free: 6.145 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.09627, allocations: 11.98 kB / 452.5 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.09628, allocations: 320 / 452.5 MB, free: 6.133 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.945e-06/0.09629, allocations: 7.938 kB / 452.5 MB, free: 6.125 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003169/0.09661, allocations: 250.2 kB / 452.7 MB, free: 5.855 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.928e-05/0.09671, allocations: 124.7 kB / 452.8 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.72e-05/0.09676, allocations: 15.98 kB / 452.8 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.733e-05/0.09685, allocations: 8 kB / 452.9 MB, free: 5.691 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.61e-05/0.09691, allocations: 11.92 kB / 452.9 MB, free: 5.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.426e-05/0.09694, allocations: 12 kB / 452.9 MB, free: 5.668 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001849/0.09714, allocations: 245.9 kB / 453.1 MB, free: 5.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.09714, allocations: 4 kB / 453.1 MB, free: 5.426 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002979/0.09745, allocations: 48 kB / 453.2 MB, free: 5.379 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.0009119/0.09837, allocations: 442.2 kB / 453.6 MB, free: 4.941 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002992/0.09868, allocations: 143.8 kB / 453.7 MB, free: 4.801 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.09869, allocations: 0 / 453.7 MB, free: 4.801 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.688e-05/0.09877, allocations: 29.05 kB / 453.8 MB, free: 4.773 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000488/0.09927, allocations: 120.8 kB / 453.9 MB, free: 4.652 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006533/0.09993, allocations: 0.5458 MB / 454.4 MB, free: 4.074 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002251/0.1002, allocations: 0.7755 MB / 455.2 MB, free: 3.273 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.151e-05/0.1002, allocations: 27.42 kB / 455.2 MB, free: 3.246 MB / 298.7 MB Notification: Performance of SimCode: time 3.81e-07/0.1002, allocations: 0 / 455.2 MB, free: 3.246 MB / 298.7 MB Notification: Performance of Templates: time 0.0049/0.1052, allocations: 3.574 MB / 458.8 MB, free: 15.66 MB / 314.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