Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.0008503/0.0008503, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.001046/0.001046, allocations: 138.1 kB / 24.97 MB, free: 8.359 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.9966/0.9966, allocations: 173.4 MB / 201.5 MB, free: 9.324 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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5030,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5030,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.692e-05/2.812e-05, allocations: 2.312 kB / 268.1 MB, free: 6.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.002851/0.002879, allocations: 2.026 MB / 270.1 MB, free: 4.684 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.004385, allocations: 1.094 MB / 271.2 MB, free: 3.582 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.00454, allocations: 3.938 kB / 271.2 MB, free: 3.578 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005517/0.005092, allocations: 167.3 kB / 271.4 MB, free: 3.414 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002457/0.005338, allocations: 123.4 kB / 271.5 MB, free: 3.293 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005163/0.005854, allocations: 243.1 kB / 271.7 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002514/0.006105, allocations: 219.4 kB / 271.9 MB, free: 2.84 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001188/0.006224, allocations: 44.36 kB / 272 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001411/0.006365, allocations: 119.7 kB / 272.1 MB, free: 2.676 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003746/0.00674, allocations: 83.77 kB / 272.2 MB, free: 2.594 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.447e-05/0.006764, allocations: 12 kB / 272.2 MB, free: 2.582 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.006888, allocations: 63.83 kB / 272.2 MB, free: 2.52 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.156e-05/0.00696, allocations: 63.77 kB / 272.3 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.681e-05/0.007026, allocations: 43.84 kB / 272.3 MB, free: 2.414 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003037/0.00733, allocations: 195.2 kB / 272.5 MB, free: 2.223 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.007335, allocations: 3.984 kB / 272.5 MB, free: 2.219 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.007336, allocations: 0 / 272.5 MB, free: 2.219 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.007341, allocations: 0 / 272.5 MB, free: 2.219 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005908/0.007931, allocations: 0.5673 MB / 273.1 MB, free: 1.609 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.007965, allocations: 12.03 kB / 273.1 MB, free: 1.598 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.054e-05/0.008036, allocations: 36.8 kB / 273.2 MB, free: 1.562 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002653/0.008301, allocations: 240.3 kB / 273.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.008321, allocations: 8.375 kB / 273.4 MB, free: 1.289 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.787e-05/0.008339, allocations: 12.38 kB / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003681/0.008707, allocations: 269.9 kB / 273.7 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.006e-06/0.008716, allocations: 3.938 kB / 273.7 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.282e-05/0.008729, allocations: 8 kB / 273.7 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.008736, allocations: 0 / 273.7 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.715e-05/0.008814, allocations: 51.83 kB / 273.7 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003925/0.009206, allocations: 366.9 kB / 274.1 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000189/0.009395, allocations: 161.4 kB / 274.3 MB, free: 336 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.245e-05/0.009468, allocations: 67.03 kB / 274.3 MB, free: 256 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.938e-05/0.009487, allocations: 4 kB / 274.3 MB, free: 252 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001121/0.009599, allocations: 80.97 kB / 274.4 MB, free: 156 kB / 250.7 MB Notification: Performance of pre-optimization done (n=22): time 1.643e-06/0.009601, allocations: 0 / 274.4 MB, free: 156 kB / 250.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003149/0.009916, allocations: 193.4 kB / 274.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.459e-05/0.00998, allocations: 114.8 kB / 274.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001909/0.01017, allocations: 296.3 kB / 275 MB, free: 15.52 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.922e-05/0.01019, allocations: 29.7 kB / 275 MB, free: 15.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.548e-05/0.01027, allocations: 163.4 kB / 275.2 MB, free: 15.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.465e-05/0.01029, allocations: 27.78 kB / 275.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.805e-05/0.01034, allocations: 47.31 kB / 275.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.01045, allocations: 0.5001 MB / 275.8 MB, free: 14.72 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.255e-05/0.01049, allocations: 15.98 kB / 275.8 MB, free: 14.7 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.107e-05/0.01056, allocations: 107.4 kB / 275.9 MB, free: 14.56 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.066e-05/0.01064, allocations: 98.02 kB / 276 MB, free: 14.44 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.01064, allocations: 0 / 276 MB, free: 14.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001384/0.01078, allocations: 125.5 kB / 276.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.01079, allocations: 4 kB / 276.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.0108, allocations: 160 / 276.1 MB, free: 14.31 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.01081, allocations: 8 kB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.715e-05/0.01087, allocations: 23.92 kB / 276.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.01088, allocations: 0 / 276.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.389e-05/0.01092, allocations: 7.953 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.01093, allocations: 4 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,$CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 0.000103/0.01103, allocations: 188.4 kB / 276.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.01115, allocations: 121.5 kB / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001321/0.01128, allocations: 103.8 kB / 276.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.01129, allocations: 4 kB / 276.5 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.01129, allocations: 4 kB / 276.6 MB, free: 13.83 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.01129, allocations: 4 kB / 276.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/0.01142, allocations: 184.4 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.01143, allocations: 3.984 kB / 276.7 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.171e-05/0.01146, allocations: 12.25 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.01146, allocations: 4 kB / 276.8 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.01147, allocations: 8 kB / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.01148, allocations: 4 kB / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.01148, allocations: 3.984 kB / 276.8 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002079/0.01169, allocations: 230.2 kB / 277 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.948e-05/0.01175, allocations: 43.77 kB / 277 MB, free: 13.28 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.997e-05/0.01178, allocations: 8 kB / 277 MB, free: 13.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.367e-05/0.01182, allocations: 8 kB / 277.1 MB, free: 13.26 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.11e-05/0.01186, allocations: 7.984 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.01188, allocations: 8 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001182/0.012, allocations: 201.1 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.012, allocations: 0 / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001952/0.01219, allocations: 39.98 kB / 277.3 MB, free: 13.01 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: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.0009115/0.0131, allocations: 405 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001744/0.01328, allocations: 87.56 kB / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.01328, allocations: 320 / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.357e-05/0.01332, allocations: 35.61 kB / 277.8 MB, free: 12.62 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003566/0.01368, allocations: 111.5 kB / 277.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005021/0.01418, allocations: 359 kB / 278.3 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.319e-05/0.01423, allocations: 92.3 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.379e-05/0.01429, allocations: 22.33 kB / 278.4 MB, free: 12 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.663e-05/0.01434, allocations: 32.48 kB / 278.4 MB, free: 11.97 MB / 266.7 MB Notification: Performance of SimCode: time 9.41e-07/0.01434, allocations: 7.938 kB / 278.4 MB, free: 11.96 MB / 266.7 MB Notification: Performance of Templates: time 0.005498/0.01983, allocations: 3.109 MB / 281.5 MB, free: 8.895 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.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.9499061808455735]