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/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.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/Complex 3.2.3+maint.om/package.mo): time 0.0008789/0.0008791, allocations: 185 kB / 16.45 MB, free: 5.656 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.261/1.261, allocations: 205.4 MB / 222.6 MB, free: 9.023 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.0007843/0.0007844, allocations: 94.64 kB / 270.9 MB, free: 8.344 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.06529/0.06529, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003619/0.000362, allocations: 12 kB / 392.7 MB, free: 66.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06695/0.06733, allocations: 50.38 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.UpSample1): time 0.001396/0.06877, allocations: 1.416 MB / 444.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006337/0.06941, allocations: 0.574 MB / 445 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.526e-05/0.06951, allocations: 0 / 445 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.79e-05/0.06955, allocations: 3.938 kB / 445 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001129/0.06967, allocations: 11.88 kB / 445 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003039/0.06998, allocations: 83.77 kB / 445.1 MB, free: 13.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.088e-05/0.07008, allocations: 87.7 kB / 445.2 MB, free: 13.61 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.605e-05/0.07017, allocations: 25.09 kB / 445.2 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.848e-05/0.07025, allocations: 35.84 kB / 445.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.11e-05/0.07031, allocations: 35.84 kB / 445.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.735e-05/0.07033, allocations: 7.938 kB / 445.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.384e-05/0.07035, allocations: 0 / 445.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.211e-05/0.07039, allocations: 19.92 kB / 445.3 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.744e-05/0.07042, allocations: 41.64 kB / 445.4 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.583e-05/0.0705, allocations: 75.84 kB / 445.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.07051, allocations: 0 / 445.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.07052, allocations: 0 / 445.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.898e-06/0.07052, allocations: 0 / 445.4 MB, free: 13.36 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0003684/0.0709, allocations: 407.1 kB / 445.8 MB, free: 12.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.02e-05/0.07093, allocations: 12.03 kB / 445.9 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.411e-05/0.07097, allocations: 15.81 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001531/0.07113, allocations: 218.7 kB / 446.1 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.17e-05/0.07116, allocations: 8 kB / 446.1 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.574e-05/0.07118, allocations: 12 kB / 446.1 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000384/0.07157, allocations: 270.1 kB / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.07159, allocations: 0 / 446.4 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.07161, allocations: 7.938 kB / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.07162, allocations: 4 kB / 446.4 MB, free: 12.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001193/0.07174, allocations: 59.91 kB / 446.4 MB, free: 12.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002419/0.07199, allocations: 306.4 kB / 446.7 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001768/0.07218, allocations: 131.7 kB / 446.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001021/0.07229, allocations: 82.78 kB / 446.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.262e-05/0.07232, allocations: 3.984 kB / 446.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.566e-05/0.07234, allocations: 38.56 kB / 447 MB, free: 11.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=17): time 1.252e-06/0.07235, allocations: 4 kB / 447 MB, free: 11.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003352/0.07269, allocations: 173.6 kB / 447.2 MB, free: 11.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.07274, allocations: 110.8 kB / 447.3 MB, free: 11.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.356e-05/0.07283, allocations: 158.2 kB / 447.4 MB, free: 11.13 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.798e-06/0.07285, allocations: 29.7 kB / 447.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.647e-05/0.07288, allocations: 100.1 kB / 447.5 MB, free: 11 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.673e-05/0.0729, allocations: 15.89 kB / 447.6 MB, free: 10.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.169e-06/0.07291, allocations: 4 kB / 447.6 MB, free: 10.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.263e-05/0.07296, allocations: 326.8 kB / 447.9 MB, free: 10.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.958e-05/0.07303, allocations: 28.36 kB / 447.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.059e-05/0.07311, allocations: 135.3 kB / 448 MB, free: 10.44 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.942e-05/0.0732, allocations: 55.92 kB / 448.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.07321, allocations: 4 kB / 448.1 MB, free: 10.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002253/0.07344, allocations: 189.5 kB / 448.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.07348, allocations: 4 kB / 448.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.07349, allocations: 4 kB / 448.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.0735, allocations: 8 kB / 448.3 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.07362, allocations: 27.92 kB / 448.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.07363, allocations: 8 kB / 448.3 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.817e-05/0.07372, allocations: 20.3 kB / 448.4 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.104e-05/0.07373, allocations: 8 kB / 448.4 MB, free: 10.11 MB / 298.7 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 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.492e-05/0.07381, allocations: 149.5 kB / 448.5 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/0.07396, allocations: 117.4 kB / 448.6 MB, free: 9.832 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.72e-05/0.074, allocations: 24.7 kB / 448.7 MB, free: 9.805 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.645e-06/0.07401, allocations: 3.984 kB / 448.7 MB, free: 9.801 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.07402, allocations: 4 kB / 448.7 MB, free: 9.797 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.07403, allocations: 0 / 448.7 MB, free: 9.797 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.07416, allocations: 201.5 kB / 448.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.07417, allocations: 0 / 448.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.07427, allocations: 27.92 kB / 448.9 MB, free: 9.523 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.07428, allocations: 4 kB / 448.9 MB, free: 9.52 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.0743, allocations: 8 kB / 448.9 MB, free: 9.512 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.07431, allocations: 0 / 448.9 MB, free: 9.512 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.07431, allocations: 4 kB / 448.9 MB, free: 9.508 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002162/0.07453, allocations: 255.8 kB / 449.1 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.593e-05/0.07459, allocations: 105 kB / 449.3 MB, free: 9.117 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.07461, allocations: 8 kB / 449.3 MB, free: 9.109 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.954e-05/0.0747, allocations: 4 kB / 449.3 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.862e-05/0.07473, allocations: 3.984 kB / 449.3 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.957e-06/0.07475, allocations: 11.94 kB / 449.3 MB, free: 9.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.94e-05/0.0748, allocations: 115.9 kB / 449.4 MB, free: 8.977 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.07481, allocations: 0 / 449.4 MB, free: 8.977 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002388/0.07505, allocations: 20 kB / 449.4 MB, free: 8.957 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.9e-05/0.07513, allocations: 107.6 kB / 449.5 MB, free: 8.84 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002056/0.07534, allocations: 111.7 kB / 449.6 MB, free: 8.73 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.07535, allocations: 1.062 kB / 449.6 MB, free: 8.73 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.627e-05/0.07539, allocations: 19.92 kB / 449.6 MB, free: 8.711 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.07579, allocations: 75.91 kB / 449.7 MB, free: 8.637 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003667/0.07617, allocations: 329.9 kB / 450 MB, free: 8.277 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.07629, allocations: 0.7205 MB / 450.8 MB, free: 7.531 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.334e-05/0.07633, allocations: 15.38 kB / 450.8 MB, free: 7.516 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.07634, allocations: 4 kB / 450.8 MB, free: 7.512 MB / 298.7 MB Notification: Performance of Templates: time 0.002173/0.07852, allocations: 1.454 MB / 452.2 MB, free: 6.055 MB / 298.7 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/jenkins1/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