Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001115/0.001115, allocations: 174.3 kB / 16.76 MB, free: 5.027 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.361/1.361, allocations: 205 MB / 222.5 MB, free: 9.062 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.0007652/0.0007652, allocations: 92.5 kB / 270.5 MB, free: 8.664 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.57 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003377/0.0003377, allocations: 12 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06518/0.06553, allocations: 49.97 MB / 441.7 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.Hold): time 0.001334/0.06689, allocations: 1.325 MB / 443 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006071/0.06752, allocations: 0.5347 MB / 443.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.703e-05/0.06761, allocations: 4 kB / 443.5 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.107e-05/0.06767, allocations: 7.938 kB / 443.6 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000113/0.06779, allocations: 7.922 kB / 443.6 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.06801, allocations: 51.78 kB / 443.6 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.132e-05/0.06809, allocations: 51.84 kB / 443.7 MB, free: 14.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.701e-05/0.06818, allocations: 12 kB / 443.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.689e-05/0.06825, allocations: 27.78 kB / 443.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.701e-05/0.0683, allocations: 27.86 kB / 443.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.325e-05/0.06832, allocations: 0 / 443.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.129e-05/0.06834, allocations: 4 kB / 443.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.77e-05/0.06838, allocations: 11.94 kB / 443.7 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.661e-05/0.06841, allocations: 31.78 kB / 443.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.649e-05/0.06848, allocations: 31.94 kB / 443.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.06849, allocations: 0 / 443.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.06849, allocations: 4 kB / 443.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.0685, allocations: 0 / 443.8 MB, free: 14.25 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.000319/0.06882, allocations: 379.4 kB / 444.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.06886, allocations: 8.031 kB / 444.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.036e-05/0.0689, allocations: 8.844 kB / 444.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001313/0.06903, allocations: 200.6 kB / 444.4 MB, free: 13.58 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.227e-06/0.06905, allocations: 8.375 kB / 444.4 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-06/0.06906, allocations: 4.125 kB / 444.4 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002204/0.06929, allocations: 138.7 kB / 444.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.06931, allocations: 0 / 444.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.06932, allocations: 4 kB / 444.5 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.06933, allocations: 0 / 444.5 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.084e-05/0.06941, allocations: 31.92 kB / 444.6 MB, free: 13.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002328/0.06965, allocations: 295.3 kB / 444.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.508e-05/0.06976, allocations: 98.42 kB / 445 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.946e-05/0.06983, allocations: 43.48 kB / 445 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.06986, allocations: 0 / 445 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.481e-05/0.06988, allocations: 46.5 kB / 445.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.06988, allocations: 0 / 445.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002349/0.07012, allocations: 101.5 kB / 445.2 MB, free: 12.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.07017, allocations: 141 kB / 445.3 MB, free: 12.51 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.206e-05/0.07026, allocations: 149.7 kB / 445.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.095e-06/0.07027, allocations: 29.7 kB / 445.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.461e-05/0.07031, allocations: 88.08 kB / 445.6 MB, free: 12.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.455e-05/0.07033, allocations: 11.91 kB / 445.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.812e-05/0.07036, allocations: 9.719 kB / 445.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.692e-05/0.0704, allocations: 318.8 kB / 445.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.408e-05/0.07045, allocations: 23.98 kB / 445.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.411e-05/0.0705, allocations: 40.3 kB / 445.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.534e-05/0.07059, allocations: 68.2 kB / 446 MB, free: 11.72 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.0706, allocations: 0 / 446 MB, free: 11.72 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000126/0.07073, allocations: 89.45 kB / 446.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.027e-05/0.07075, allocations: 8.156 kB / 446.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.07076, allocations: 0 / 446.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.07077, allocations: 4 kB / 446.1 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.259e-05/0.07085, allocations: 12 kB / 446.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.869e-06/0.07086, allocations: 0 / 446.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.507e-05/0.07091, allocations: 19.8 kB / 446.1 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.07093, allocations: 4 kB / 446.1 MB, free: 11.58 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.158e-05/0.07098, allocations: 114.7 kB / 446.3 MB, free: 11.46 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.755e-05/0.07106, allocations: 65.53 kB / 446.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.592e-05/0.07109, allocations: 11.88 kB / 446.3 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.0711, allocations: 4 kB / 446.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.07111, allocations: 4.125 kB / 446.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/0.07112, allocations: 11.86 kB / 446.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.07124, allocations: 177.6 kB / 446.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.07125, allocations: 0 / 446.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.224e-05/0.07132, allocations: 15.98 kB / 446.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.07133, allocations: 3.984 kB / 446.5 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.07134, allocations: 8.062 kB / 446.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.07135, allocations: 4 kB / 446.6 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.07135, allocations: 0 / 446.6 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001417/0.0715, allocations: 205.9 kB / 446.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.792e-05/0.07155, allocations: 92.98 kB / 446.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.07157, allocations: 4 kB / 446.9 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.032e-05/0.07164, allocations: 8 kB / 446.9 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.678e-05/0.07168, allocations: 3.938 kB / 446.9 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.07169, allocations: 7.938 kB / 446.9 MB, free: 10.74 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.409e-05/0.07173, allocations: 108 kB / 447 MB, free: 10.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.07174, allocations: 0 / 447 MB, free: 10.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002116/0.07196, allocations: 12 kB / 447 MB, free: 10.62 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 5.721e-05/0.07202, allocations: 95.25 kB / 447.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001315/0.07216, allocations: 51.91 kB / 447.1 MB, free: 10.47 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.07217, allocations: 0 / 447.1 MB, free: 10.47 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.901e-05/0.07221, allocations: 12.31 kB / 447.1 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.07255, allocations: 36.08 kB / 447.2 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002855/0.07285, allocations: 261.3 kB / 447.4 MB, free: 10.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000101/0.07296, allocations: 0.6965 MB / 448.1 MB, free: 9.41 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.42e-05/0.07299, allocations: 11.44 kB / 448.1 MB, free: 9.398 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.073, allocations: 4 kB / 448.1 MB, free: 9.395 MB / 298.7 MB Notification: Performance of Templates: time 0.001652/0.07465, allocations: 0.9111 MB / 449.1 MB, free: 8.488 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches