Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009504/0.0009506, allocations: 174.2 kB / 16.8 MB, free: 5.012 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.421/1.421, allocations: 205.4 MB / 223 MB, free: 9.02 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.0007007/0.0007006, allocations: 89.48 kB / 271.3 MB, free: 8.238 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.06944/0.06944, allocations: 12.59 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003604, allocations: 11.94 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09259/0.09297, allocations: 50.38 MB / 443.7 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample): time 0.001704/0.09473, allocations: 1.29 MB / 445 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008285/0.0956, allocations: 499.7 kB / 445.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.954e-05/0.09572, allocations: 0 / 445.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.203e-05/0.09578, allocations: 3.938 kB / 445.5 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001366/0.09592, allocations: 19.91 kB / 445.5 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002742/0.09621, allocations: 43.91 kB / 445.5 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.039e-05/0.0963, allocations: 47.84 kB / 445.6 MB, free: 13.51 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.09642, allocations: 12.19 kB / 445.6 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.252e-05/0.09649, allocations: 27.84 kB / 445.6 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.459e-05/0.09656, allocations: 11.88 kB / 445.6 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.039e-05/0.09659, allocations: 4 kB / 445.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.403e-05/0.09661, allocations: 4 kB / 445.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.563e-05/0.09667, allocations: 15.92 kB / 445.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.811e-05/0.09671, allocations: 45.52 kB / 445.7 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.255e-05/0.09679, allocations: 39.92 kB / 445.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.0968, allocations: 0 / 445.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.09681, allocations: 0 / 445.7 MB, free: 13.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.09681, allocations: 0 / 445.7 MB, free: 13.34 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004054/0.09723, allocations: 367.5 kB / 446.1 MB, free: 12.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.09728, allocations: 15.97 kB / 446.1 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.798e-05/0.09732, allocations: 8.844 kB / 446.1 MB, free: 12.91 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.09748, allocations: 208 kB / 446.3 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.948e-06/0.0975, allocations: 384 / 446.3 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.398e-05/0.09752, allocations: 4.375 kB / 446.3 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002412/0.09776, allocations: 122 kB / 446.5 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.09778, allocations: 0 / 446.5 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.718e-06/0.0978, allocations: 0 / 446.5 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.09781, allocations: 0 / 446.5 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.182e-05/0.09789, allocations: 27.92 kB / 446.5 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002621/0.09816, allocations: 278.6 kB / 446.8 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.249e-05/0.09827, allocations: 67.8 kB / 446.8 MB, free: 12.08 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.961e-05/0.09834, allocations: 42.56 kB / 446.9 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.09837, allocations: 0 / 446.9 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.727e-05/0.09839, allocations: 38.5 kB / 446.9 MB, free: 11.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 9.02e-07/0.0984, allocations: 0 / 446.9 MB, free: 11.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002548/0.09866, allocations: 93.69 kB / 447 MB, free: 11.88 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.34e-05/0.09873, allocations: 110.8 kB / 447.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.274e-05/0.09883, allocations: 137.6 kB / 447.2 MB, free: 11.61 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.227e-06/0.09885, allocations: 25.7 kB / 447.3 MB, free: 11.57 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.24e-05/0.09888, allocations: 96.12 kB / 447.4 MB, free: 11.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.491e-05/0.0989, allocations: 3.906 kB / 447.4 MB, free: 11.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-06/0.09891, allocations: 4.188 kB / 447.4 MB, free: 11.47 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.653e-05/0.09897, allocations: 322.8 kB / 447.7 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.162e-05/0.09901, allocations: 11.98 kB / 447.7 MB, free: 11.13 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.089e-05/0.09906, allocations: 39.36 kB / 447.7 MB, free: 11.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.064e-05/0.09915, allocations: 51.36 kB / 447.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.09916, allocations: 0 / 447.8 MB, free: 11.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001188/0.09928, allocations: 73.53 kB / 447.8 MB, free: 10.94 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.0993, allocations: 8 kB / 447.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.09932, allocations: 7.922 kB / 447.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.09933, allocations: 0 / 447.9 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.619e-05/0.09941, allocations: 12 kB / 447.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.09943, allocations: 4 kB / 447.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.995e-05/0.09947, allocations: 4 kB / 447.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.285e-06/0.09949, allocations: 3.984 kB / 447.9 MB, free: 10.9 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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.952e-05/0.09955, allocations: 126.7 kB / 448 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.204e-05/0.09962, allocations: 53.59 kB / 448.1 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.911e-05/0.09966, allocations: 15.83 kB / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.09967, allocations: 0 / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.09968, allocations: 96 / 448.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.09969, allocations: 7.984 kB / 448.1 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001202/0.09981, allocations: 173.6 kB / 448.3 MB, free: 10.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.09982, allocations: 3.984 kB / 448.3 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.683e-05/0.09988, allocations: 11.94 kB / 448.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.09989, allocations: 8.062 kB / 448.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.09991, allocations: 0 / 448.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.09991, allocations: 0 / 448.3 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.09992, allocations: 4 kB / 448.3 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00014/0.1001, allocations: 185.1 kB / 448.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.747e-05/0.1001, allocations: 89 kB / 448.6 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.1001, allocations: 3.984 kB / 448.6 MB, free: 10.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.566e-05/0.1002, allocations: 4 kB / 448.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.724e-05/0.1002, allocations: 4 kB / 448.6 MB, free: 10.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.9e-06/0.1002, allocations: 11.88 kB / 448.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.875e-05/0.1003, allocations: 107.2 kB / 448.7 MB, free: 10 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1003, allocations: 0 / 448.7 MB, free: 10 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002033/0.1005, allocations: 11.94 kB / 448.7 MB, free: 9.992 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 6.495e-05/0.1006, allocations: 95.25 kB / 448.8 MB, free: 9.891 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001309/0.1007, allocations: 35.92 kB / 448.8 MB, free: 9.855 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1007, allocations: 0 / 448.8 MB, free: 9.855 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.947e-05/0.1008, allocations: 15.98 kB / 448.8 MB, free: 9.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003692/0.1012, allocations: 32.27 kB / 448.9 MB, free: 9.809 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003166/0.1015, allocations: 236.2 kB / 449.1 MB, free: 9.539 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001366/0.1016, allocations: 0.6928 MB / 449.8 MB, free: 8.82 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.906e-05/0.1017, allocations: 15.42 kB / 449.8 MB, free: 8.805 MB / 298.7 MB Notification: Performance of SimCode: time 3.41e-07/0.1017, allocations: 0 / 449.8 MB, free: 8.805 MB / 298.7 MB Notification: Performance of Templates: time 0.001893/0.1036, allocations: 0.8088 MB / 450.6 MB, free: 8 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches