Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.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.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00132/0.00132, allocations: 178.1 kB / 16.77 MB, free: 4.902 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.437/1.437, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007188/0.0007188, allocations: 94.28 kB / 271.3 MB, free: 8.25 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.07002/0.07002, allocations: 12.59 MB / 332.1 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004098/0.0004099, allocations: 16 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07811/0.07854, allocations: 50.38 MB / 443 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold): time 0.001422/0.07999, allocations: 1.294 MB / 444.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006578/0.08067, allocations: 0.5039 MB / 444.8 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.139e-05/0.08076, allocations: 4 kB / 444.8 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.934e-05/0.08081, allocations: 3.938 kB / 444.8 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.08096, allocations: 19.91 kB / 444.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002418/0.08121, allocations: 39.91 kB / 444.8 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.24e-05/0.0813, allocations: 55.78 kB / 444.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.08141, allocations: 15.94 kB / 444.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.944e-05/0.08148, allocations: 19.86 kB / 444.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.225e-05/0.08155, allocations: 27.84 kB / 444.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.567e-05/0.08158, allocations: 4 kB / 445 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.329e-05/0.08159, allocations: 4 kB / 445 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.451e-05/0.08163, allocations: 15.92 kB / 445 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.747e-05/0.08168, allocations: 45.52 kB / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.989e-05/0.08177, allocations: 39.92 kB / 445.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.08178, allocations: 0 / 445.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.08179, allocations: 0 / 445.1 MB, free: 14.01 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.0818, allocations: 0 / 445.1 MB, free: 14.01 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003904/0.0822, allocations: 367.5 kB / 445.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.08224, allocations: 16.03 kB / 445.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.589e-05/0.08228, allocations: 12.84 kB / 445.4 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001612/0.08245, allocations: 200.6 kB / 445.6 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.17e-05/0.08247, allocations: 4.375 kB / 445.6 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.347e-05/0.08249, allocations: 12.06 kB / 445.7 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002545/0.08275, allocations: 134.7 kB / 445.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.08276, allocations: 0 / 445.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.08278, allocations: 4 kB / 445.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.08279, allocations: 0 / 445.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.17e-05/0.08288, allocations: 35.92 kB / 445.8 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002498/0.08313, allocations: 291.4 kB / 446.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001011/0.08324, allocations: 98.3 kB / 446.2 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.146e-05/0.08331, allocations: 43.55 kB / 446.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.08334, allocations: 0 / 446.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.465e-05/0.08336, allocations: 42.56 kB / 446.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 9.32e-07/0.08337, allocations: 0 / 446.3 MB, free: 12.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002496/0.08362, allocations: 105.4 kB / 446.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.118e-05/0.08367, allocations: 141 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.888e-05/0.08377, allocations: 149.8 kB / 446.7 MB, free: 12.12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.526e-06/0.08378, allocations: 25.7 kB / 446.7 MB, free: 12.09 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.04e-05/0.08382, allocations: 88.08 kB / 446.8 MB, free: 12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.489e-05/0.08384, allocations: 11.91 kB / 446.8 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.787e-06/0.08385, allocations: 0 / 446.8 MB, free: 11.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.174e-05/0.0839, allocations: 318.8 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.5e-05/0.08395, allocations: 19.92 kB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.571e-05/0.084, allocations: 44.28 kB / 447.2 MB, free: 11.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.099e-05/0.0841, allocations: 68.22 kB / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.08411, allocations: 0 / 447.2 MB, free: 11.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001312/0.08424, allocations: 89.45 kB / 447.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/0.08426, allocations: 8.156 kB / 447.3 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.08428, allocations: 4 kB / 447.3 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.08429, allocations: 3.938 kB / 447.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.499e-05/0.08437, allocations: 12 kB / 447.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.08439, allocations: 7.984 kB / 447.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.306e-05/0.08444, allocations: 11.92 kB / 447.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.08445, allocations: 0 / 447.4 MB, free: 11.36 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (6): * Single equations (assignments): 6 * 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 5.908e-05/0.08451, allocations: 129.5 kB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.133e-05/0.08459, allocations: 61.59 kB / 447.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.142e-05/0.08463, allocations: 11.88 kB / 447.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.08464, allocations: 0 / 447.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.08465, allocations: 7.984 kB / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.08466, allocations: 3.938 kB / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.08479, allocations: 173.6 kB / 447.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.0848, allocations: 0 / 447.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.249e-05/0.08487, allocations: 16.11 kB / 447.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.08488, allocations: 4 kB / 447.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.0849, allocations: 4 kB / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.0849, allocations: 4.062 kB / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.08491, allocations: 4 kB / 447.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001572/0.08507, allocations: 201.9 kB / 448 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.08512, allocations: 101 kB / 448.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.523e-05/0.08514, allocations: 0 / 448.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.796e-05/0.08522, allocations: 4 kB / 448.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.37e-05/0.08526, allocations: 7.938 kB / 448.1 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.08527, allocations: 4 kB / 448.1 MB, free: 10.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.101e-05/0.08532, allocations: 112 kB / 448.2 MB, free: 10.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08533, allocations: 0 / 448.2 MB, free: 10.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002122/0.08555, allocations: 4 kB / 448.2 MB, free: 10.42 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (6): * Single equations (assignments): 6 * 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 7.956e-05/0.08563, allocations: 103.2 kB / 448.3 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001464/0.08578, allocations: 43.91 kB / 448.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.0858, allocations: 0 / 448.4 MB, free: 10.27 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.127e-05/0.08584, allocations: 19.92 kB / 448.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/0.08622, allocations: 37.05 kB / 448.4 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003187/0.08655, allocations: 257.4 kB / 448.7 MB, free: 9.918 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001207/0.08668, allocations: 0.7004 MB / 449.4 MB, free: 9.191 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.702e-05/0.08672, allocations: 7.438 kB / 449.4 MB, free: 9.184 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.08672, allocations: 4 kB / 449.4 MB, free: 9.18 MB / 298.7 MB Notification: Performance of Templates: time 0.001839/0.08857, allocations: 0.9169 MB / 450.3 MB, free: 8.266 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches