Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001366/0.001372, allocations: 103.9 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.001301/0.0013, 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.667/1.667, allocations: 205.1 MB / 223.1 MB, free: 12.26 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.08454/0.08454, allocations: 12.59 MB / 283.1 MB, free: 15.46 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.002237/0.002237, allocations: 84.72 kB / 343.5 MB, free: 2.938 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3195/0.3217, allocations: 49.39 MB / 392.9 MB, free: 49.15 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked): time 0.004227/0.326, allocations: 1.535 MB / 394.4 MB, free: 48.1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.3274, allocations: 0.5058 MB / 394.9 MB, free: 47.74 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.3276, allocations: 2.281 kB / 394.9 MB, free: 47.74 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.074e-05/0.3277, allocations: 4.828 kB / 394.9 MB, free: 47.74 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002247/0.3279, allocations: 8.312 kB / 394.9 MB, free: 47.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003831/0.3283, allocations: 49.73 kB / 395 MB, free: 47.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.3284, allocations: 38.66 kB / 395 MB, free: 47.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.3286, allocations: 13.86 kB / 395 MB, free: 47.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001036/0.3287, allocations: 20.64 kB / 395.1 MB, free: 47.67 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.044e-05/0.3288, allocations: 19.36 kB / 395.1 MB, free: 47.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.3289, allocations: 2.562 kB / 395.1 MB, free: 47.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.067e-05/0.3289, allocations: 3.531 kB / 395.1 MB, free: 47.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.586e-05/0.329, allocations: 13.88 kB / 395.1 MB, free: 47.65 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.045e-05/0.329, allocations: 21.14 kB / 395.1 MB, free: 47.63 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001874/0.3292, allocations: 46.31 kB / 395.2 MB, free: 47.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.3292, allocations: 2.031 kB / 395.2 MB, free: 47.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.806e-06/0.3293, allocations: 0 / 395.2 MB, free: 47.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.3293, allocations: 0 / 395.2 MB, free: 47.61 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000621/0.3299, allocations: 369.2 kB / 395.5 MB, free: 47.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.833e-05/0.33, allocations: 11.03 kB / 395.5 MB, free: 47.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.158e-05/0.33, allocations: 8.031 kB / 395.5 MB, free: 47.23 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.3302, allocations: 193.9 kB / 395.7 MB, free: 47.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.286e-05/0.3303, allocations: 1.406 kB / 395.7 MB, free: 47.01 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.3303, allocations: 2.469 kB / 395.7 MB, free: 47.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002762/0.3306, allocations: 100.2 kB / 395.8 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.3306, allocations: 0 / 395.8 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.278e-05/0.3306, allocations: 1.062 kB / 395.8 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3306, allocations: 0.7031 kB / 395.8 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.268e-05/0.3307, allocations: 17.64 kB / 395.9 MB, free: 46.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003131/0.331, allocations: 266 kB / 396.1 MB, free: 46.63 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.2e-05/0.3311, allocations: 42.08 kB / 396.2 MB, free: 46.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.954e-05/0.3312, allocations: 19.12 kB / 396.2 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.3312, allocations: 0 / 396.2 MB, free: 46.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.3312, allocations: 39.2 kB / 396.2 MB, free: 46.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=2): time 8.22e-07/0.3312, allocations: 11.88 kB / 396.2 MB, free: 46.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002608/0.3315, allocations: 69.86 kB / 396.3 MB, free: 46.46 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.3315, allocations: 77.77 kB / 396.4 MB, free: 46.37 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001247/0.3317, allocations: 135 kB / 396.5 MB, free: 46.26 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.153e-05/0.3317, allocations: 25.7 kB / 396.5 MB, free: 46.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.408e-05/0.3317, allocations: 87.72 kB / 396.6 MB, free: 46.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.863e-05/0.3318, allocations: 9.703 kB / 396.6 MB, free: 46.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.3318, allocations: 17.5 kB / 396.6 MB, free: 46.12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.546e-05/0.3319, allocations: 317.9 kB / 397 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.799e-05/0.3319, allocations: 10.27 kB / 397 MB, free: 45.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.149e-05/0.332, allocations: 18.55 kB / 397 MB, free: 45.78 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.761e-05/0.3321, allocations: 36.31 kB / 397 MB, free: 45.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.3321, allocations: 0 / 397 MB, free: 45.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001227/0.3322, allocations: 55.48 kB / 397.1 MB, free: 45.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.3322, allocations: 5.531 kB / 397.1 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.733e-06/0.3323, allocations: 1.125 kB / 397.1 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.3323, allocations: 0 / 397.1 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.848e-05/0.3324, allocations: 6.5 kB / 397.1 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.3324, allocations: 5 kB / 397.1 MB, free: 45.71 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.832e-05/0.3324, allocations: 11.77 kB / 397.1 MB, free: 45.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.3325, allocations: 1.188 kB / 397.1 MB, free: 45.7 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.552e-05/0.3325, allocations: 121.1 kB / 397.2 MB, free: 45.58 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.085e-05/0.3326, allocations: 33.75 kB / 397.3 MB, free: 45.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.672e-05/0.3326, allocations: 16.48 kB / 397.3 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.3326, allocations: 1.156 kB / 397.3 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3327, allocations: 0.7031 kB / 397.3 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.3327, allocations: 1.156 kB / 397.3 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.3328, allocations: 174.1 kB / 397.4 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3328, allocations: 0 / 397.4 MB, free: 45.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.638e-05/0.3329, allocations: 10.52 kB / 397.5 MB, free: 45.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.3329, allocations: 1.031 kB / 397.5 MB, free: 45.33 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.3329, allocations: 1.828 kB / 397.5 MB, free: 45.33 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3329, allocations: 1.125 kB / 397.5 MB, free: 45.33 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.3329, allocations: 4.453 kB / 397.5 MB, free: 45.33 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001734/0.3331, allocations: 161 kB / 397.6 MB, free: 45.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.93e-05/0.3332, allocations: 97 kB / 397.7 MB, free: 45.07 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.751e-05/0.3332, allocations: 5.625 kB / 397.7 MB, free: 45.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.744e-05/0.3333, allocations: 3 kB / 397.7 MB, free: 45.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.3333, allocations: 3.125 kB / 397.7 MB, free: 45.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.378e-06/0.3333, allocations: 1.094 kB / 397.7 MB, free: 45.07 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.265e-05/0.3334, allocations: 107.2 kB / 397.8 MB, free: 44.98 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3334, allocations: 0 / 397.8 MB, free: 44.98 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002192/0.3336, allocations: 12.91 kB / 397.8 MB, free: 44.98 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001135/0.3338, allocations: 99.55 kB / 397.9 MB, free: 44.89 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001514/0.3339, allocations: 21.53 kB / 398 MB, free: 44.88 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3339, allocations: 3.312 kB / 398 MB, free: 44.88 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.194e-05/0.334, allocations: 8.75 kB / 398 MB, free: 44.88 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/0.3344, allocations: 20.66 kB / 398 MB, free: 44.87 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003584/0.3348, allocations: 171.3 kB / 398.2 MB, free: 44.72 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.335, allocations: 0.6947 MB / 398.9 MB, free: 44.02 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.889e-05/0.3351, allocations: 1.719 kB / 398.9 MB, free: 44.02 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.831e-05/0.3351, allocations: 14.64 kB / 398.9 MB, free: 44 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3351, allocations: 0 / 398.9 MB, free: 44 MB / 318.1 MB Notification: Performance of Templates: time 0.003063/0.3382, allocations: 482.6 kB / 399.3 MB, free: 43.8 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches