Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|add.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001601/0.001601, allocations: 104.5 kB / 16.03 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 187.1 kB / 16.95 MB, free: 6.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.786/1.786, allocations: 205.1 MB / 222.8 MB, free: 12.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08647/0.08647, allocations: 12.59 MB / 282.7 MB, free: 15.62 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003305/0.003305, allocations: 80.73 kB / 343 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.331/0.3343, allocations: 49.38 MB / 392.4 MB, free: 49.12 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1): time 0.004434/0.3388, allocations: 1.793 MB / 394.2 MB, free: 47.89 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001692/0.3406, allocations: 0.564 MB / 394.7 MB, free: 47.49 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.3408, allocations: 6.531 kB / 394.7 MB, free: 47.49 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.3409, allocations: 5.812 kB / 394.7 MB, free: 47.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002413/0.3412, allocations: 15.8 kB / 394.7 MB, free: 47.47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005914/0.3418, allocations: 88 kB / 394.8 MB, free: 47.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002391/0.342, allocations: 95.27 kB / 394.9 MB, free: 47.38 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002276/0.3422, allocations: 29.61 kB / 395 MB, free: 47.37 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001552/0.3424, allocations: 49.48 kB / 395 MB, free: 47.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.3425, allocations: 44.3 kB / 395 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.377e-05/0.3426, allocations: 7.219 kB / 395.1 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.803e-05/0.3426, allocations: 8.031 kB / 395.1 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.3427, allocations: 35.03 kB / 395.1 MB, free: 47.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.849e-05/0.3428, allocations: 51.66 kB / 395.1 MB, free: 47.26 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002236/0.3431, allocations: 100.1 kB / 395.2 MB, free: 47.21 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.3431, allocations: 0 / 395.2 MB, free: 47.21 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.3431, allocations: 0 / 395.2 MB, free: 47.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.3431, allocations: 0 / 395.2 MB, free: 47.21 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005937/0.3437, allocations: 421.3 kB / 395.7 MB, free: 46.81 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.449e-05/0.3438, allocations: 9.438 kB / 395.7 MB, free: 46.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.485e-05/0.3438, allocations: 21.69 kB / 395.7 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002429/0.3441, allocations: 210.8 kB / 395.9 MB, free: 46.58 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.3441, allocations: 8.938 kB / 395.9 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/0.3441, allocations: 11.91 kB / 395.9 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005929/0.3447, allocations: 288.8 kB / 396.2 MB, free: 46.4 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3448, allocations: 1.125 kB / 396.2 MB, free: 46.4 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.3448, allocations: 1.719 kB / 396.2 MB, free: 46.4 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.3448, allocations: 2.094 kB / 396.2 MB, free: 46.4 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001523/0.345, allocations: 58.48 kB / 396.3 MB, free: 46.38 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003806/0.3453, allocations: 300.5 kB / 396.6 MB, free: 46.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002375/0.3456, allocations: 137.4 kB / 396.7 MB, free: 45.97 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.3457, allocations: 79.83 kB / 396.8 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.034e-05/0.3458, allocations: 2.312 kB / 396.8 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.3458, allocations: 32.92 kB / 396.8 MB, free: 45.88 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.523e-06/0.3458, allocations: 0 / 396.8 MB, free: 45.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004392/0.3462, allocations: 182.1 kB / 397 MB, free: 45.79 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.307e-05/0.3463, allocations: 114.9 kB / 397.1 MB, free: 45.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001465/0.3465, allocations: 156.6 kB / 397.2 MB, free: 45.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.3465, allocations: 27.83 kB / 397.3 MB, free: 45.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.905e-05/0.3466, allocations: 96.45 kB / 397.4 MB, free: 45.42 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.975e-05/0.3466, allocations: 18.08 kB / 397.4 MB, free: 45.41 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.039e-05/0.3467, allocations: 37.86 kB / 397.4 MB, free: 45.38 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.253e-05/0.3468, allocations: 328.8 kB / 397.7 MB, free: 45.05 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.907e-05/0.3468, allocations: 28.84 kB / 397.8 MB, free: 45.05 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.347, allocations: 129.3 kB / 397.9 MB, free: 44.9 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001847/0.3471, allocations: 172.3 kB / 398.1 MB, free: 44.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.3472, allocations: 1.156 kB / 398.1 MB, free: 44.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000309/0.3475, allocations: 184 kB / 398.2 MB, free: 44.63 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.3475, allocations: 7.969 kB / 398.3 MB, free: 44.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.3475, allocations: 4.25 kB / 398.3 MB, free: 44.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.604e-05/0.3476, allocations: 5.469 kB / 398.3 MB, free: 44.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.3477, allocations: 30.34 kB / 398.3 MB, free: 44.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.3477, allocations: 7.562 kB / 398.3 MB, free: 44.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.537e-05/0.3478, allocations: 17.88 kB / 398.3 MB, free: 44.61 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.77e-05/0.3479, allocations: 9.375 kB / 398.3 MB, free: 44.61 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 ($CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * 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 (21): * Single equations (assignments): 21 * 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.873e-05/0.348, allocations: 141.5 kB / 398.5 MB, free: 44.48 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/0.3482, allocations: 122.2 kB / 398.6 MB, free: 44.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.399e-05/0.3482, allocations: 21.94 kB / 398.6 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3482, allocations: 7.312 kB / 398.6 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.3482, allocations: 1.062 kB / 398.6 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.755e-06/0.3483, allocations: 5.984 kB / 398.6 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001972/0.3485, allocations: 196.7 kB / 398.8 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3485, allocations: 4.938 kB / 398.8 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.3486, allocations: 26.92 kB / 398.8 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3486, allocations: 1.188 kB / 398.8 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.867e-05/0.3487, allocations: 10.42 kB / 398.9 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.3487, allocations: 1.188 kB / 398.9 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.3487, allocations: 1.188 kB / 398.9 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003022/0.349, allocations: 253 kB / 399.1 MB, free: 43.95 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.134e-05/0.3491, allocations: 109.3 kB / 399.2 MB, free: 43.83 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.97e-05/0.3491, allocations: 6.312 kB / 399.2 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.155e-05/0.3492, allocations: 2.375 kB / 399.2 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.323e-05/0.3492, allocations: 8.812 kB / 399.2 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.3492, allocations: 12.36 kB / 399.2 MB, free: 43.81 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.337e-05/0.3493, allocations: 116.7 kB / 399.3 MB, free: 43.71 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3493, allocations: 0 / 399.3 MB, free: 43.71 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002861/0.3496, allocations: 19.66 kB / 399.4 MB, free: 43.71 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * 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 (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.0001145/0.3498, allocations: 102.9 kB / 399.5 MB, free: 43.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002609/0.35, allocations: 116.4 kB / 399.6 MB, free: 43.56 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.35, allocations: 2.188 kB / 399.6 MB, free: 43.56 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.687e-05/0.3501, allocations: 13.48 kB / 399.6 MB, free: 43.55 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005368/0.3506, allocations: 81.28 kB / 399.7 MB, free: 43.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004802/0.3511, allocations: 304.5 kB / 400 MB, free: 43.26 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001942/0.3513, allocations: 0.7222 MB / 400.7 MB, free: 42.54 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.489e-05/0.3514, allocations: 10.89 kB / 400.7 MB, free: 42.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.77e-05/0.3514, allocations: 18.34 kB / 400.7 MB, free: 42.52 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3514, allocations: 1.094 kB / 400.7 MB, free: 42.52 MB / 318.1 MB Notification: Performance of Templates: time 0.003667/0.3551, allocations: 1.182 MB / 401.9 MB, free: 41.95 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches