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.001455/0.001455, allocations: 106.2 kB / 16.31 MB, free: 5.879 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.001423/0.001422, allocations: 191.2 kB / 17.24 MB, free: 5.539 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.664/1.664, allocations: 205.1 MB / 223.1 MB, free: 12.27 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.07795/0.07795, allocations: 12.59 MB / 283.1 MB, free: 15.47 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.002105/0.002105, allocations: 88.39 kB / 343.5 MB, free: 2.941 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3209, allocations: 49.39 MB / 392.9 MB, free: 49.22 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1): time 0.003458/0.3244, allocations: 1.729 MB / 394.6 MB, free: 48.03 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009839/0.3254, allocations: 0.5799 MB / 395.2 MB, free: 47.62 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.3256, allocations: 7.5 kB / 395.2 MB, free: 47.62 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.943e-05/0.3256, allocations: 9.984 kB / 395.2 MB, free: 47.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000158/0.3258, allocations: 16.14 kB / 395.2 MB, free: 47.6 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003891/0.3262, allocations: 100.4 kB / 395.3 MB, free: 47.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001291/0.3263, allocations: 85.64 kB / 395.4 MB, free: 47.51 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.3265, allocations: 34.28 kB / 395.4 MB, free: 47.49 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.832e-05/0.3266, allocations: 41.73 kB / 395.5 MB, free: 47.47 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.318e-05/0.3267, allocations: 46.69 kB / 395.5 MB, free: 47.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.681e-05/0.3267, allocations: 6.781 kB / 395.5 MB, free: 47.45 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.382e-05/0.3267, allocations: 7.406 kB / 395.5 MB, free: 47.45 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.34e-05/0.3268, allocations: 27.95 kB / 395.6 MB, free: 47.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.757e-05/0.3269, allocations: 50.14 kB / 395.6 MB, free: 47.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001899/0.3271, allocations: 105.6 kB / 395.7 MB, free: 47.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3271, allocations: 1.125 kB / 395.7 MB, free: 47.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3271, allocations: 0 / 395.7 MB, free: 47.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.189e-06/0.3271, allocations: 0 / 395.7 MB, free: 47.34 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.0005904/0.3277, allocations: 426.7 kB / 396.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.3277, allocations: 9.547 kB / 396.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.514e-05/0.3278, allocations: 16.44 kB / 396.2 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002153/0.328, allocations: 212.9 kB / 396.4 MB, free: 46.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.188e-05/0.328, allocations: 8.312 kB / 396.4 MB, free: 46.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.578e-05/0.3281, allocations: 15.47 kB / 396.4 MB, free: 46.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005465/0.3286, allocations: 281.5 kB / 396.7 MB, free: 46.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.3286, allocations: 5.469 kB / 396.7 MB, free: 46.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.3287, allocations: 4 kB / 396.7 MB, free: 46.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.3287, allocations: 2.969 kB / 396.7 MB, free: 46.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001569/0.3288, allocations: 50.88 kB / 396.7 MB, free: 46.51 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003463/0.3292, allocations: 304.6 kB / 397 MB, free: 46.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002334/0.3294, allocations: 140.1 kB / 397.2 MB, free: 46.08 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.3296, allocations: 78.92 kB / 397.2 MB, free: 46.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.3296, allocations: 1.812 kB / 397.2 MB, free: 46.02 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.983e-05/0.3296, allocations: 34.16 kB / 397.3 MB, free: 45.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 2.775e-06/0.3296, allocations: 3.984 kB / 397.3 MB, free: 45.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004463/0.3301, allocations: 181 kB / 397.5 MB, free: 45.88 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.879e-05/0.3302, allocations: 116.6 kB / 397.6 MB, free: 45.74 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.3303, allocations: 154.4 kB / 397.7 MB, free: 45.61 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.406e-05/0.3303, allocations: 29.7 kB / 397.8 MB, free: 45.58 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.579e-05/0.3304, allocations: 95.52 kB / 397.8 MB, free: 45.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.761e-05/0.3304, allocations: 19.2 kB / 397.9 MB, free: 45.47 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.091e-05/0.3305, allocations: 34.53 kB / 397.9 MB, free: 45.44 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.132e-05/0.3306, allocations: 329.1 kB / 398.2 MB, free: 45.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.948e-05/0.3306, allocations: 27.22 kB / 398.2 MB, free: 45.1 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.951e-05/0.3307, allocations: 126.8 kB / 398.4 MB, free: 44.95 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002081/0.331, allocations: 177 kB / 398.5 MB, free: 44.76 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.331, allocations: 1.062 kB / 398.5 MB, free: 44.76 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003491/0.3313, allocations: 185.3 kB / 398.7 MB, free: 44.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.3314, allocations: 6.594 kB / 398.7 MB, free: 44.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.3314, allocations: 4.5 kB / 398.7 MB, free: 44.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.333e-05/0.3314, allocations: 4.969 kB / 398.7 MB, free: 44.65 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.3316, allocations: 30.48 kB / 398.8 MB, free: 44.64 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.884e-05/0.3316, allocations: 5.25 kB / 398.8 MB, free: 44.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.292e-05/0.3317, allocations: 17.39 kB / 398.8 MB, free: 44.63 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.548e-05/0.3317, allocations: 9.844 kB / 398.8 MB, free: 44.63 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 0.0001448/0.3319, allocations: 146 kB / 398.9 MB, free: 44.49 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002131/0.3321, allocations: 119 kB / 399.1 MB, free: 44.42 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.965e-05/0.3322, allocations: 20.22 kB / 399.1 MB, free: 44.4 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3322, allocations: 6.609 kB / 399.1 MB, free: 44.4 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.3322, allocations: 1.219 kB / 399.1 MB, free: 44.4 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.3322, allocations: 5.531 kB / 399.1 MB, free: 44.39 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001635/0.3324, allocations: 198.1 kB / 399.3 MB, free: 44.17 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.135e-06/0.3324, allocations: 5.125 kB / 399.3 MB, free: 44.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001348/0.3325, allocations: 30.89 kB / 399.3 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.3325, allocations: 1.031 kB / 399.3 MB, free: 44.15 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.197e-05/0.3326, allocations: 10 kB / 399.3 MB, free: 44.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3326, allocations: 2.188 kB / 399.3 MB, free: 44.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.3326, allocations: 0 / 399.3 MB, free: 44.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002775/0.3329, allocations: 249.5 kB / 399.6 MB, free: 43.94 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.013e-05/0.3329, allocations: 108.4 kB / 399.7 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.724e-05/0.333, allocations: 10.16 kB / 399.7 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.303e-05/0.3331, allocations: 3.219 kB / 399.7 MB, free: 43.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.58e-05/0.3331, allocations: 8.984 kB / 399.7 MB, free: 43.81 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.3331, allocations: 8.469 kB / 399.7 MB, free: 43.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.4e-05/0.3332, allocations: 116.5 kB / 399.8 MB, free: 43.71 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3332, allocations: 0 / 399.8 MB, free: 43.71 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002918/0.3335, allocations: 20.19 kB / 399.8 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.0001273/0.3337, allocations: 97.75 kB / 399.9 MB, free: 43.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003119/0.334, allocations: 117.4 kB / 400.1 MB, free: 43.56 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.334, allocations: 0 / 400.1 MB, free: 43.56 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.227e-05/0.334, allocations: 13.45 kB / 400.1 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.0006821/0.3347, allocations: 79.47 kB / 400.1 MB, free: 43.52 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006666/0.3354, allocations: 260.9 kB / 400.4 MB, free: 43.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002003/0.3356, allocations: 0.7302 MB / 401.1 MB, free: 42.58 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.271e-05/0.3357, allocations: 6.312 kB / 401.1 MB, free: 42.58 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.204e-05/0.3357, allocations: 18.89 kB / 401.2 MB, free: 42.57 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3357, allocations: 0 / 401.2 MB, free: 42.57 MB / 318.1 MB Notification: Performance of Templates: time 0.00397/0.3397, allocations: 1.202 MB / 402.4 MB, free: 41.98 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches