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.001567/0.001567, allocations: 75.77 kB / 21.18 MB, free: 3.379 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.001722/0.001722, allocations: 161 kB / 24.56 MB, free: 8 kB / 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.041/1.041, allocations: 177.2 MB / 205 MB, free: 5.59 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 1.553e-06/1.553e-06, allocations: 0 / 273 MB, free: 1.523 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.984e-05/2.139e-05, allocations: 2.312 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.002434/0.002456, allocations: 1.959 MB / 274.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.003963, allocations: 1.168 MB / 276.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.004081, allocations: 3.938 kB / 276.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005998/0.00468, allocations: 163.3 kB / 276.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003726/0.005053, allocations: 159.3 kB / 276.4 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003626/0.005416, allocations: 171.3 kB / 276.6 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002166/0.005632, allocations: 195.4 kB / 276.8 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.005741, allocations: 21.78 kB / 276.8 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/0.005864, allocations: 99.69 kB / 276.9 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.005975, allocations: 67.8 kB / 277 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.005997, allocations: 12 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001141/0.006111, allocations: 63.88 kB / 277 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.129e-05/0.006173, allocations: 39.84 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.586e-05/0.006228, allocations: 39.86 kB / 277.1 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002475/0.006476, allocations: 159.3 kB / 277.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.00648, allocations: 7.984 kB / 277.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.006481, allocations: 0 / 277.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.006485, allocations: 0 / 277.3 MB, free: 13.19 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.0005675/0.007053, allocations: 0.5401 MB / 277.8 MB, free: 12.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.007092, allocations: 12.03 kB / 277.8 MB, free: 12.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.88e-05/0.007151, allocations: 24.8 kB / 277.9 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002675/0.007418, allocations: 228.3 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.007436, allocations: 4.375 kB / 278.1 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.54e-05/0.007451, allocations: 8.375 kB / 278.1 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002552/0.007706, allocations: 140.6 kB / 278.2 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.007718, allocations: 7.938 kB / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.059e-05/0.007728, allocations: 0 / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.007736, allocations: 0 / 278.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.981e-05/0.007786, allocations: 23.92 kB / 278.3 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003813/0.008167, allocations: 351 kB / 278.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.008306, allocations: 121.2 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.322e-05/0.008349, allocations: 35.06 kB / 278.8 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.00837, allocations: 11.98 kB / 278.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001061/0.008476, allocations: 73.11 kB / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=9): time 1.322e-06/0.008478, allocations: 0 / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002361/0.008714, allocations: 121.4 kB / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.014e-05/0.008774, allocations: 106.8 kB / 279.1 MB, free: 11.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.008984, allocations: 292.3 kB / 279.3 MB, free: 10.87 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.009001, allocations: 29.64 kB / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.968e-05/0.009081, allocations: 166.9 kB / 279.5 MB, free: 10.67 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.46e-05/0.009105, allocations: 20.08 kB / 279.6 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.125e-05/0.009147, allocations: 39.33 kB / 279.6 MB, free: 10.6 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.009296, allocations: 0.5001 MB / 280.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.334e-05/0.009319, allocations: 8 kB / 280.1 MB, free: 10.08 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.681e-05/0.009366, allocations: 64.75 kB / 280.2 MB, free: 10 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.28e-05/0.009419, allocations: 47.25 kB / 280.2 MB, free: 9.945 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.009421, allocations: 0 / 280.2 MB, free: 9.945 MB / 266.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001132/0.009535, allocations: 81.53 kB / 280.3 MB, free: 9.859 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.009549, allocations: 4 kB / 280.3 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.009555, allocations: 64 / 280.3 MB, free: 9.855 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.009573, allocations: 4 kB / 280.3 MB, free: 9.852 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.029e-05/0.009654, allocations: 15.98 kB / 280.3 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/0.00966, allocations: 0 / 280.3 MB, free: 9.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.475e-05/0.009695, allocations: 4 kB / 280.3 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.992e-06/0.009701, allocations: 0 / 280.3 MB, free: 9.832 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 9.882e-05/0.0098, allocations: 169.6 kB / 280.5 MB, free: 9.656 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.998e-05/0.00986, allocations: 65.5 kB / 280.5 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001581/0.01002, allocations: 99.38 kB / 280.6 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.01002, allocations: 64 / 280.6 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.01003, allocations: 12 kB / 280.7 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.01004, allocations: 0 / 280.7 MB, free: 9.469 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001642/0.0102, allocations: 180.4 kB / 280.8 MB, free: 9.258 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.0102, allocations: 0 / 280.8 MB, free: 9.258 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.55e-05/0.01023, allocations: 8 kB / 280.8 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.01023, allocations: 0 / 280.8 MB, free: 9.25 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.057e-05/0.01024, allocations: 4 kB / 280.8 MB, free: 9.246 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.339e-06/0.01024, allocations: 7.984 kB / 280.9 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.01025, allocations: 0 / 280.9 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001421/0.01039, allocations: 163.5 kB / 281 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.512e-05/0.01043, allocations: 35.84 kB / 281 MB, free: 9.012 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.01045, allocations: 4 kB / 281.1 MB, free: 9.008 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.114e-05/0.01048, allocations: 4 kB / 281.1 MB, free: 9.004 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.926e-05/0.01052, allocations: 7.984 kB / 281.1 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.259e-05/0.01054, allocations: 4 kB / 281.1 MB, free: 8.992 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000126/0.01066, allocations: 209.1 kB / 281.3 MB, free: 8.789 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01066, allocations: 0 / 281.3 MB, free: 8.789 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001899/0.01085, allocations: 31.92 kB / 281.3 MB, free: 8.758 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.0009504/0.0118, allocations: 398.2 kB / 281.7 MB, free: 8.508 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001166/0.01192, allocations: 55.59 kB / 281.7 MB, free: 8.449 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01192, allocations: 0 / 281.7 MB, free: 8.449 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.624e-05/0.01196, allocations: 23.69 kB / 281.8 MB, free: 8.422 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002563/0.01221, allocations: 72.5 kB / 281.8 MB, free: 8.352 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003687/0.01258, allocations: 306 kB / 282.1 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.692e-05/0.01263, allocations: 71.83 kB / 282.2 MB, free: 7.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.759e-05/0.01268, allocations: 21.61 kB / 282.2 MB, free: 7.902 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.755e-05/0.01271, allocations: 24.5 kB / 282.3 MB, free: 7.879 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01271, allocations: 192 / 282.3 MB, free: 7.879 MB / 266.7 MB Notification: Performance of Templates: time 0.00484/0.01755, allocations: 2.572 MB / 284.8 MB, free: 5.344 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.0534708951599896]