Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001191/0.001191, allocations: 71.77 kB / 21.69 MB, free: 2.855 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.001256/0.001256, allocations: 163.6 kB / 24.99 MB, free: 8.746 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 1.057/1.057, allocations: 177.1 MB / 205.3 MB, free: 5.629 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.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.747e-06/3.747e-06, allocations: 7.984 kB / 273 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.746e-05/3.121e-05, allocations: 2.312 kB / 273 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003087/0.003118, allocations: 1.946 MB / 275 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001445/0.004563, allocations: 1.157 MB / 276.2 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001105/0.004674, allocations: 11.94 kB / 276.2 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004814/0.005155, allocations: 163.3 kB / 276.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.00542, allocations: 151.3 kB / 276.5 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003932/0.005813, allocations: 167.4 kB / 276.6 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002192/0.006033, allocations: 199.4 kB / 276.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.006137, allocations: 25.78 kB / 276.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001215/0.006258, allocations: 99.69 kB / 277 MB, free: 13.92 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.006359, allocations: 67.8 kB / 277 MB, free: 13.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.063e-05/0.006379, allocations: 8 kB / 277 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001196/0.006499, allocations: 59.89 kB / 277.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.171e-05/0.006561, allocations: 47.77 kB / 277.1 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.824e-05/0.006609, allocations: 39.86 kB / 277.2 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002423/0.006851, allocations: 163.4 kB / 277.3 MB, free: 13.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.006855, allocations: 0 / 277.3 MB, free: 13.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.006856, allocations: 0 / 277.3 MB, free: 13.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.006861, allocations: 0 / 277.3 MB, free: 13.54 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005905/0.007451, allocations: 0.5401 MB / 277.9 MB, free: 12.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/0.007489, allocations: 8.031 kB / 277.9 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.375e-05/0.007552, allocations: 28.78 kB / 277.9 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002723/0.007825, allocations: 228.3 kB / 278.1 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.007845, allocations: 4.375 kB / 278.1 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.502e-05/0.00786, allocations: 8.375 kB / 278.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/0.008115, allocations: 143.6 kB / 278.3 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.754e-06/0.008123, allocations: 3.938 kB / 278.3 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.008134, allocations: 3.984 kB / 278.3 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.008142, allocations: 4 kB / 278.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.769e-05/0.00819, allocations: 23.92 kB / 278.3 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003775/0.008567, allocations: 343.1 kB / 278.7 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001476/0.008715, allocations: 125.2 kB / 278.8 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.516e-05/0.00876, allocations: 43.06 kB / 278.8 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.008777, allocations: 0 / 278.8 MB, free: 11.87 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001102/0.008888, allocations: 81.09 kB / 278.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.008889, allocations: 0 / 278.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002272/0.009116, allocations: 117.4 kB / 279 MB, free: 11.65 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.521e-05/0.009171, allocations: 110.8 kB / 279.1 MB, free: 11.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/0.009368, allocations: 288.3 kB / 279.4 MB, free: 11.22 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.009384, allocations: 29.95 kB / 279.4 MB, free: 11.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.097e-05/0.009455, allocations: 166.9 kB / 279.6 MB, free: 11.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/0.009479, allocations: 23.83 kB / 279.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.784e-05/0.009517, allocations: 31.33 kB / 279.6 MB, free: 10.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.009647, allocations: 0.5001 MB / 280.1 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.399e-05/0.009671, allocations: 8 kB / 280.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.5e-05/0.009716, allocations: 68.73 kB / 280.2 MB, free: 10.35 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.145e-05/0.009767, allocations: 47.25 kB / 280.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.009769, allocations: 0 / 280.3 MB, free: 10.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 9.077e-05/0.00986, allocations: 81.53 kB / 280.3 MB, free: 10.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.009873, allocations: 8.062 kB / 280.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.009878, allocations: 0 / 280.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.009893, allocations: 4 kB / 280.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.14e-05/0.009964, allocations: 11.98 kB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.00997, allocations: 0 / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.517e-05/0.01001, allocations: 4 kB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.972e-06/0.01001, allocations: 4 kB / 280.4 MB, free: 10.18 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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 8.346e-05/0.01009, allocations: 167 kB / 280.5 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.169e-05/0.01016, allocations: 73.47 kB / 280.6 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001449/0.0103, allocations: 99.44 kB / 280.7 MB, free: 9.82 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.01031, allocations: 4.312 kB / 280.7 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.01031, allocations: 0 / 280.7 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.187e-06/0.01031, allocations: 0 / 280.7 MB, free: 9.816 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001273/0.01044, allocations: 188.4 kB / 280.9 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.01044, allocations: 4 kB / 280.9 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.864e-05/0.01047, allocations: 4 kB / 280.9 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.434e-06/0.01047, allocations: 0 / 280.9 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.01048, allocations: 4 kB / 280.9 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.01049, allocations: 3.938 kB / 280.9 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01049, allocations: 4 kB / 280.9 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001414/0.01063, allocations: 171.5 kB / 281.1 MB, free: 9.379 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.364e-05/0.01067, allocations: 31.84 kB / 281.1 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.15e-05/0.01069, allocations: 0 / 281.1 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.864e-05/0.01073, allocations: 8 kB / 281.1 MB, free: 9.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.925e-05/0.01077, allocations: 7.984 kB / 281.1 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/0.01078, allocations: 4 kB / 281.1 MB, free: 9.328 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001111/0.01089, allocations: 201.1 kB / 281.3 MB, free: 9.133 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01089, allocations: 0 / 281.3 MB, free: 9.133 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001668/0.01106, allocations: 35.92 kB / 281.4 MB, free: 9.098 MB / 266.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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008545/0.01192, allocations: 394.4 kB / 281.8 MB, free: 8.848 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001318/0.01205, allocations: 47.59 kB / 281.8 MB, free: 8.797 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.01205, allocations: 4.062 kB / 281.8 MB, free: 8.793 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.83e-05/0.01209, allocations: 23.69 kB / 281.8 MB, free: 8.766 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.01237, allocations: 71.11 kB / 281.9 MB, free: 8.699 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004931/0.01286, allocations: 302 kB / 282.2 MB, free: 8.371 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.617e-05/0.01291, allocations: 79.81 kB / 282.3 MB, free: 8.273 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.165e-05/0.01296, allocations: 17.94 kB / 282.3 MB, free: 8.25 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.846e-05/0.013, allocations: 28.5 kB / 282.3 MB, free: 8.223 MB / 266.7 MB Notification: Performance of SimCode: time 1.032e-06/0.013, allocations: 0 / 282.3 MB, free: 8.223 MB / 266.7 MB Notification: Performance of Templates: time 0.004899/0.0179, allocations: 2.564 MB / 284.9 MB, free: 5.695 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/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: 3.0321218038443476]