Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009775/0.0009775, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001021/0.001021, allocations: 171 kB / 24.82 MB, free: 9.262 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9685/0.9685, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 273.4 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.146e-05/1.319e-05, allocations: 2.312 kB / 273.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample): time 0.001804/0.001818, allocations: 1.601 MB / 275 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006576/0.002475, allocations: 0.518 MB / 275.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.621e-05/0.002551, allocations: 3.938 kB / 275.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.16e-05/0.002593, allocations: 7.938 kB / 275.5 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001225/0.002716, allocations: 15.91 kB / 275.5 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.002938, allocations: 55.7 kB / 275.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.249e-05/0.003031, allocations: 47.84 kB / 275.6 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.967e-05/0.00311, allocations: 12.17 kB / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.003218, allocations: 39.84 kB / 275.7 MB, free: 15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.373e-05/0.003262, allocations: 19.91 kB / 275.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.003275, allocations: 0 / 275.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.62e-05/0.003311, allocations: 12 kB / 275.7 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.661e-05/0.003348, allocations: 15.92 kB / 275.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.608e-05/0.003364, allocations: 7.938 kB / 275.7 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001061/0.00347, allocations: 47.77 kB / 275.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.533e-06/0.003471, allocations: 0 / 275.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.003472, allocations: 0 / 275.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.306e-06/0.003475, allocations: 0 / 275.8 MB, free: 14.9 MB / 266.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.0003101/0.003785, allocations: 412.2 kB / 276.2 MB, free: 14.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.003816, allocations: 12.03 kB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.103e-05/0.003907, allocations: 24.88 kB / 276.2 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000129/0.004036, allocations: 151.7 kB / 276.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.072e-06/0.004042, allocations: 384 / 276.4 MB, free: 14.26 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.683e-06/0.004049, allocations: 4.375 kB / 276.4 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.004199, allocations: 125.6 kB / 276.5 MB, free: 14.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.004205, allocations: 8.125 kB / 276.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.164e-06/0.004212, allocations: 8.109 kB / 276.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.004216, allocations: 0 / 276.5 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.212e-05/0.004228, allocations: 7.938 kB / 276.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001834/0.004411, allocations: 236.1 kB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.285e-05/0.004454, allocations: 58.05 kB / 276.8 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.594e-05/0.00447, allocations: 19.5 kB / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.414e-05/0.004484, allocations: 0 / 276.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.913e-05/0.004503, allocations: 41.39 kB / 276.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.004505, allocations: 4 kB / 276.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001031/0.004608, allocations: 49.52 kB / 276.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.004645, allocations: 85.05 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.903e-05/0.004724, allocations: 193.9 kB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.748e-06/0.004734, allocations: 25.7 kB / 277.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.365e-05/0.004777, allocations: 142.8 kB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.017e-05/0.004788, allocations: 0 / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.584e-05/0.004813, allocations: 23.36 kB / 277.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.004931, allocations: 492.1 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.593e-06/0.004938, allocations: 4.25 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.645e-06/0.004946, allocations: 8 kB / 277.9 MB, free: 12.58 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.841e-05/0.004964, allocations: 11.67 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/0.004965, allocations: 0 / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.034e-05/0.005006, allocations: 41.59 kB / 277.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.919e-06/0.005016, allocations: 7.938 kB / 277.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.005019, allocations: 0 / 277.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.847e-06/0.005028, allocations: 4 kB / 277.9 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.01e-05/0.005068, allocations: 3.984 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.485e-06/0.005071, allocations: 4.094 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.376e-05/0.005084, allocations: 4 kB / 278 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.797e-06/0.005088, allocations: 0 / 278 MB, free: 12.5 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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.933e-05/0.005148, allocations: 152.6 kB / 278.1 MB, free: 12.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.201e-05/0.00518, allocations: 37.66 kB / 278.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.618e-05/0.005206, allocations: 19.73 kB / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.005208, allocations: 0 / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.443e-06/0.005209, allocations: 0 / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.005212, allocations: 0 / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.147e-05/0.005304, allocations: 105.2 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.005305, allocations: 4.031 kB / 278.3 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.589e-05/0.005321, allocations: 7.938 kB / 278.3 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.005323, allocations: 7.938 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.368e-06/0.005328, allocations: 4 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.005329, allocations: 0 / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.00533, allocations: 3.938 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.057e-05/0.005411, allocations: 199.6 kB / 278.5 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.29e-05/0.005434, allocations: 15.92 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.525e-06/0.005441, allocations: 0 / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.859e-05/0.00547, allocations: 4 kB / 278.5 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.177e-05/0.005492, allocations: 11.97 kB / 278.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-06/0.005494, allocations: 0 / 278.5 MB, free: 11.87 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.704e-05/0.005541, allocations: 142.1 kB / 278.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005541, allocations: 4 kB / 278.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001275/0.005668, allocations: 4 kB / 278.7 MB, free: 11.72 MB / 266.7 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 6.178e-05/0.00573, allocations: 95.19 kB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 4.911e-05/0.005779, allocations: 11.69 kB / 278.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 9.62e-07/0.00578, allocations: 0 / 278.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.31e-05/0.005793, allocations: 19.75 kB / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002029/0.005996, allocations: 12.3 kB / 278.8 MB, free: 11.56 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003219/0.006318, allocations: 177.2 kB / 279 MB, free: 11.36 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.512e-05/0.006353, allocations: 59.34 kB / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.776e-05/0.006371, allocations: 4 kB / 279 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.63e-05/0.006427, allocations: 78.19 kB / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of SimCode: time 4e-07/0.006428, allocations: 160 / 279.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of Templates: time 0.001899/0.008327, allocations: 0.6223 MB / 279.7 MB, free: 10.59 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/SubSample/SubSample.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.586708934046328]