Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.0009288/0.0009288, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.0009788/0.0009788, allocations: 168.7 kB / 24.91 MB, free: 9.18 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.011/1.011, allocations: 177.1 MB / 205.3 MB, free: 5.465 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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5030,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 273.5 MB, free: 1.246 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.68e-05/2.827e-05, allocations: 2.312 kB / 273.5 MB, free: 1.242 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.006267/0.006296, allocations: 2.092 MB / 275.6 MB, free: 15.13 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004814/0.01111, allocations: 1.242 MB / 276.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001146/0.01122, allocations: 7.938 kB / 276.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005188/0.01174, allocations: 155.4 kB / 277 MB, free: 13.72 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002768/0.01202, allocations: 163.2 kB / 277.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004353/0.01246, allocations: 215.2 kB / 277.3 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002401/0.0127, allocations: 235.2 kB / 277.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.884e-05/0.01279, allocations: 34.53 kB / 277.6 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001461/0.01294, allocations: 127.6 kB / 277.7 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001076/0.01305, allocations: 83.77 kB / 277.8 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.357e-05/0.01307, allocations: 12 kB / 277.8 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00314/0.01621, allocations: 63.89 kB / 277.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.177e-05/0.01628, allocations: 63.77 kB / 277.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.885e-05/0.01634, allocations: 51.78 kB / 278 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002716/0.01661, allocations: 191.2 kB / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.01662, allocations: 0 / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.01662, allocations: 3.984 kB / 278.2 MB, free: 12.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.01662, allocations: 0 / 278.2 MB, free: 12.5 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005009/0.01712, allocations: 477 kB / 278.7 MB, free: 12.01 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.01716, allocations: 8.031 kB / 278.7 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.956e-05/0.01721, allocations: 24.92 kB / 278.7 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002528/0.01746, allocations: 229.5 kB / 278.9 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.013e-05/0.01748, allocations: 12.38 kB / 278.9 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.754e-05/0.0175, allocations: 12.36 kB / 278.9 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002989/0.0178, allocations: 245 kB / 279.2 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.01781, allocations: 3.938 kB / 279.2 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.01782, allocations: 7.984 kB / 279.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.01783, allocations: 4 kB / 279.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.519e-05/0.01788, allocations: 34.73 kB / 279.2 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002693/0.01815, allocations: 211.6 kB / 279.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.01831, allocations: 166.3 kB / 279.6 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.922e-05/0.01837, allocations: 50.55 kB / 279.6 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.01839, allocations: 11.94 kB / 279.7 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.896e-05/0.01848, allocations: 70.33 kB / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.423e-06/0.01848, allocations: 0 / 279.7 MB, free: 10.82 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0001941/0.01867, allocations: 133.4 kB / 279.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.285e-05/0.01872, allocations: 118.8 kB / 280 MB, free: 10.54 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001646/0.01889, allocations: 238.6 kB / 280.2 MB, free: 10.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/0.0189, allocations: 29.7 kB / 280.2 MB, free: 10.26 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.212e-05/0.01895, allocations: 109 kB / 280.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/0.01897, allocations: 27.83 kB / 280.4 MB, free: 10.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.95e-05/0.01902, allocations: 41.67 kB / 280.4 MB, free: 10.07 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.003085/0.02211, allocations: 330.8 kB / 280.7 MB, free: 9.742 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.47e-05/0.02213, allocations: 14.83 kB / 280.7 MB, free: 9.727 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.955e-05/0.02219, allocations: 95.22 kB / 280.8 MB, free: 9.609 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.697e-05/0.02227, allocations: 82.98 kB / 280.9 MB, free: 9.508 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.02227, allocations: 4 kB / 280.9 MB, free: 9.504 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001236/0.02239, allocations: 100.3 kB / 281 MB, free: 9.398 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.02241, allocations: 4 kB / 281 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.02241, allocations: 0 / 281 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.02243, allocations: 4 kB / 281 MB, free: 9.391 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.438e-05/0.02249, allocations: 19.92 kB / 281 MB, free: 9.371 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.356e-06/0.02249, allocations: 0 / 281 MB, free: 9.371 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.028e-05/0.02254, allocations: 12.16 kB / 281.1 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.02255, allocations: 4 kB / 281.1 MB, free: 9.355 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 8.242e-05/0.02263, allocations: 132.5 kB / 281.2 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.431e-05/0.02273, allocations: 93.53 kB / 281.3 MB, free: 9.117 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.02284, allocations: 79.81 kB / 281.4 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.02284, allocations: 4 kB / 281.4 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.953e-06/0.02284, allocations: 0 / 281.4 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.02285, allocations: 3.984 kB / 281.4 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000115/0.02296, allocations: 117.7 kB / 281.5 MB, free: 8.891 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.02296, allocations: 4 kB / 281.5 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.064e-05/0.023, allocations: 15.92 kB / 281.5 MB, free: 8.871 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.167e-06/0.02301, allocations: 4 kB / 281.5 MB, free: 8.867 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.02302, allocations: 7.938 kB / 281.5 MB, free: 8.859 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.02302, allocations: 4.078 kB / 281.5 MB, free: 8.855 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.02302, allocations: 3.984 kB / 281.5 MB, free: 8.852 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.128e-05/0.02312, allocations: 104.5 kB / 281.6 MB, free: 8.723 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.371e-05/0.02317, allocations: 35.78 kB / 281.7 MB, free: 8.688 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.631e-05/0.0232, allocations: 11.94 kB / 281.7 MB, free: 8.676 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.555e-05/0.02324, allocations: 3.938 kB / 281.7 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.069e-05/0.02327, allocations: 11.98 kB / 281.7 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.472e-05/0.02329, allocations: 12.06 kB / 281.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.002e-05/0.02337, allocations: 85.59 kB / 281.8 MB, free: 8.562 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02337, allocations: 0 / 281.8 MB, free: 8.562 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002079/0.02357, allocations: 47.89 kB / 281.8 MB, free: 8.516 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.00435/0.02792, allocations: 0.5225 MB / 282.4 MB, free: 8.219 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001346/0.02806, allocations: 76.89 kB / 282.4 MB, free: 8.141 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.02806, allocations: 0 / 282.4 MB, free: 8.141 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.51e-05/0.0281, allocations: 20.84 kB / 282.4 MB, free: 8.117 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.02836, allocations: 106.9 kB / 282.6 MB, free: 8.02 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004567/0.02882, allocations: 373.2 kB / 282.9 MB, free: 7.617 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.599e-05/0.02888, allocations: 88.31 kB / 283 MB, free: 7.512 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.507e-05/0.02893, allocations: 26.31 kB / 283 MB, free: 7.484 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.02904, allocations: 95.47 kB / 283.1 MB, free: 7.391 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.02904, allocations: 0 / 283.1 MB, free: 7.391 MB / 266.7 MB Notification: Performance of Templates: time 0.009446/0.03848, allocations: 3.399 MB / 286.5 MB, free: 4.055 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.776809017639607]