Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007923/0.0007923, allocations: 84 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003905/0.003905, allocations: 145.8 kB / 24.68 MB, free: 9.426 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.845/0.845, allocations: 173.4 MB / 201.2 MB, free: 9.434 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 319.7 MB, free: 5.723 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.064e-05/2.224e-05, allocations: 2.281 kB / 319.7 MB, free: 5.719 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.002203/0.002225, allocations: 1.86 MB / 321.5 MB, free: 3.848 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.003375, allocations: 0.9895 MB / 322.5 MB, free: 2.852 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.003484, allocations: 7.938 kB / 322.5 MB, free: 2.844 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005213/0.004005, allocations: 163.3 kB / 322.7 MB, free: 2.684 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002269/0.004232, allocations: 119.5 kB / 322.8 MB, free: 2.566 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003746/0.004607, allocations: 203.1 kB / 323 MB, free: 2.371 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001941/0.004801, allocations: 179.5 kB / 323.2 MB, free: 2.195 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.464e-05/0.004896, allocations: 25.78 kB / 323.2 MB, free: 2.168 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001081/0.005004, allocations: 107.7 kB / 323.3 MB, free: 2.062 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.979e-05/0.005094, allocations: 59.86 kB / 323.4 MB, free: 2.004 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.899e-05/0.005113, allocations: 8 kB / 323.4 MB, free: 1.996 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001114/0.005224, allocations: 59.84 kB / 323.4 MB, free: 1.938 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.687e-05/0.005281, allocations: 47.83 kB / 323.5 MB, free: 1.891 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.71e-05/0.005328, allocations: 35.86 kB / 323.5 MB, free: 1.855 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002398/0.005568, allocations: 207.3 kB / 323.7 MB, free: 1.652 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.304e-06/0.00557, allocations: 0 / 323.7 MB, free: 1.652 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.005571, allocations: 0 / 323.7 MB, free: 1.652 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.005575, allocations: 0 / 323.7 MB, free: 1.652 MB / 282.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.0005335/0.006109, allocations: 454 kB / 324.2 MB, free: 1.176 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.12e-05/0.00614, allocations: 8.031 kB / 324.2 MB, free: 1.168 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.683e-05/0.006187, allocations: 20.84 kB / 324.2 MB, free: 1.148 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.00642, allocations: 208.8 kB / 324.4 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.367e-05/0.006434, allocations: 4.375 kB / 324.4 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.227e-05/0.006446, allocations: 8.375 kB / 324.4 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002357/0.006682, allocations: 138.4 kB / 324.6 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.006692, allocations: 7.938 kB / 324.6 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.055e-05/0.006703, allocations: 7.938 kB / 324.6 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.006708, allocations: 0 / 324.6 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.753e-05/0.006775, allocations: 35.92 kB / 324.6 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003181/0.007093, allocations: 290.1 kB / 324.9 MB, free: 384 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001489/0.007242, allocations: 111.9 kB / 325 MB, free: 244 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.842e-05/0.007291, allocations: 46.56 kB / 325 MB, free: 188 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.881e-05/0.007309, allocations: 3.938 kB / 325 MB, free: 184 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001088/0.007418, allocations: 79.38 kB / 325.1 MB, free: 92 kB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.163e-06/0.007419, allocations: 0 / 325.1 MB, free: 92 kB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002476/0.007667, allocations: 145.5 kB / 325.3 MB, free: 15.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/0.007716, allocations: 106.8 kB / 325.4 MB, free: 15.81 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001745/0.007891, allocations: 269.7 kB / 325.6 MB, free: 15.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.279e-05/0.007904, allocations: 29.7 kB / 325.7 MB, free: 15.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.423e-05/0.007958, allocations: 108.4 kB / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.897e-05/0.007977, allocations: 19.91 kB / 325.8 MB, free: 15.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.008009, allocations: 29.7 kB / 325.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.855e-05/0.008088, allocations: 322.8 kB / 326.1 MB, free: 15.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.662e-05/0.008124, allocations: 23.98 kB / 326.2 MB, free: 15 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.036e-05/0.008175, allocations: 68.27 kB / 326.2 MB, free: 14.91 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.786e-05/0.008242, allocations: 65.77 kB / 326.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.008245, allocations: 0 / 326.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001/0.008345, allocations: 93.58 kB / 326.4 MB, free: 14.75 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.008358, allocations: 12.06 kB / 326.4 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.008362, allocations: 0 / 326.4 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.054e-05/0.008372, allocations: 0 / 326.4 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.264e-05/0.008425, allocations: 15.94 kB / 326.4 MB, free: 14.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.00843, allocations: 4.156 kB / 326.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.322e-05/0.008463, allocations: 15.88 kB / 326.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.34e-06/0.008468, allocations: 0 / 326.4 MB, free: 14.7 MB / 298.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 7.967e-05/0.008548, allocations: 141.8 kB / 326.6 MB, free: 14.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.321e-05/0.008591, allocations: 57.55 kB / 326.6 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001375/0.008729, allocations: 123.5 kB / 326.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.008732, allocations: 4 kB / 326.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.008736, allocations: 0 / 326.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.00874, allocations: 3.984 kB / 326.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.00884, allocations: 165.2 kB / 326.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.008842, allocations: 3.938 kB / 326.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.908e-05/0.008861, allocations: 15.92 kB / 326.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.008863, allocations: 0 / 326.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.008871, allocations: 4 kB / 326.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.008872, allocations: 0 / 326.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.008872, allocations: 0 / 326.9 MB, free: 14.14 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001348/0.009007, allocations: 166.6 kB / 327.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.681e-05/0.009054, allocations: 35.84 kB / 327.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.00907, allocations: 0 / 327.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.204e-05/0.009102, allocations: 8.062 kB / 327.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.046e-05/0.009132, allocations: 11.98 kB / 327.1 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.009143, allocations: 4 kB / 327.2 MB, free: 13.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001141/0.009257, allocations: 193.2 kB / 327.3 MB, free: 13.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.009257, allocations: 0 / 327.3 MB, free: 13.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001546/0.009411, allocations: 31.94 kB / 327.4 MB, free: 13.67 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: 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.0006683/0.01008, allocations: 443.3 kB / 327.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001294/0.01021, allocations: 63.91 kB / 327.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.01021, allocations: 3.938 kB / 327.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.109e-05/0.01025, allocations: 31.92 kB / 327.9 MB, free: 13.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002432/0.0105, allocations: 69.69 kB / 328 MB, free: 13.26 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003774/0.01087, allocations: 342.8 kB / 328.3 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.99e-05/0.01094, allocations: 119.4 kB / 328.4 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.652e-05/0.01098, allocations: 20.5 kB / 328.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01098, allocations: 0 / 328.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of Templates: time 0.002855/0.01383, allocations: 2.628 MB / 331.1 MB, free: 10.11 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.286992171779275]