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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007375/0.0007375, allocations: 93.78 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007902/0.0007903, allocations: 175.8 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 223.3 MB / 242.3 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002224/0.0002224, allocations: 8 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07327/0.0735, allocations: 50.41 MB / 352.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.002006/0.07555, allocations: 1.684 MB / 354.2 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001509/0.07707, allocations: 1.056 MB / 355.2 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.871e-05/0.07717, allocations: 4 kB / 355.2 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000476/0.07766, allocations: 146.9 kB / 355.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002352/0.0779, allocations: 111.6 kB / 355.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005489/0.07846, allocations: 215.3 kB / 355.7 MB, free: 480 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002261/0.0787, allocations: 219.4 kB / 355.9 MB, free: 260 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.07881, allocations: 40.3 kB / 356 MB, free: 220 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.07892, allocations: 79.62 kB / 356 MB, free: 140 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.07904, allocations: 83.55 kB / 356.1 MB, free: 56 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.108e-05/0.07907, allocations: 4 kB / 356.1 MB, free: 52 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.07918, allocations: 43.98 kB / 356.2 MB, free: 8 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.823e-05/0.07926, allocations: 51.75 kB / 356.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.413e-05/0.07936, allocations: 101.2 kB / 356.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002031/0.07956, allocations: 183.8 kB / 356.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.07958, allocations: 4 kB / 356.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.07958, allocations: 0 / 356.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.576e-06/0.07959, allocations: 0 / 356.5 MB, free: 15.67 MB / 302.1 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.000621/0.08022, allocations: 0.5119 MB / 357 MB, free: 15.1 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.08026, allocations: 12.03 kB / 357 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.364e-05/0.08032, allocations: 28.59 kB / 357 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002834/0.08061, allocations: 274.8 kB / 357.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.08064, allocations: 8.375 kB / 357.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.334e-05/0.08067, allocations: 20.12 kB / 357.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004848/0.08116, allocations: 309.2 kB / 357.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.08118, allocations: 0 / 357.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.586e-05/0.0812, allocations: 4 kB / 357.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.08121, allocations: 4 kB / 357.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001435/0.08136, allocations: 59.91 kB / 357.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004427/0.08181, allocations: 390.3 kB / 358.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.08213, allocations: 172 kB / 358.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.08228, allocations: 86.55 kB / 358.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.312e-05/0.08231, allocations: 3.984 kB / 358.3 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001435/0.08246, allocations: 83.33 kB / 358.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.783e-06/0.08247, allocations: 0 / 358.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004536/0.08293, allocations: 225.3 kB / 358.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.517e-05/0.08302, allocations: 148.4 kB / 358.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000255/0.08328, allocations: 276.9 kB / 359.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.08331, allocations: 29.7 kB / 359.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.521e-05/0.08338, allocations: 116.6 kB / 359.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.384e-05/0.08342, allocations: 35.64 kB / 359.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.692e-05/0.08347, allocations: 29.7 kB / 359.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.983e-05/0.08357, allocations: 338.8 kB / 359.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.478e-05/0.08366, allocations: 40.45 kB / 359.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001502/0.08382, allocations: 171 kB / 359.8 MB, free: 12.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002273/0.08405, allocations: 199.3 kB / 360 MB, free: 11.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.08407, allocations: 0 / 360 MB, free: 11.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003411/0.08441, allocations: 221.4 kB / 360.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.08443, allocations: 11.94 kB / 360.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.543e-06/0.08445, allocations: 4 kB / 360.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.08446, allocations: 4 kB / 360.2 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.905e-05/0.08456, allocations: 31.86 kB / 360.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.08457, allocations: 8 kB / 360.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000113/0.08469, allocations: 28.33 kB / 360.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.08471, allocations: 8 kB / 360.3 MB, free: 11.44 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * 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 (28): * Single equations (assignments): 28 * 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.0001308/0.08485, allocations: 164.5 kB / 360.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.08503, allocations: 121.3 kB / 360.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.638e-05/0.0851, allocations: 29.7 kB / 360.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.0851, allocations: 0 / 360.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.08512, allocations: 4 kB / 360.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.08513, allocations: 15.84 kB / 360.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001817/0.08532, allocations: 249.5 kB / 360.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.08533, allocations: 320 / 360.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.889e-05/0.08537, allocations: 15.98 kB / 360.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.08538, allocations: 0 / 360.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.349e-05/0.0854, allocations: 8 kB / 360.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.08541, allocations: 0 / 360.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.08541, allocations: 4 kB / 360.9 MB, free: 10.78 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003191/0.08574, allocations: 229.3 kB / 361.1 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.305e-05/0.08584, allocations: 116.8 kB / 361.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.531e-05/0.08588, allocations: 8 kB / 361.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.68e-05/0.08597, allocations: 11.98 kB / 361.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.676e-05/0.086, allocations: 0 / 361.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.08603, allocations: 15.98 kB / 361.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001816/0.08622, allocations: 196.5 kB / 361.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.08622, allocations: 3.938 kB / 361.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.08653, allocations: 51.94 kB / 361.5 MB, free: 10.11 MB / 302.1 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.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * 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 (22): * Single equations (assignments): 20 * 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.0009103/0.08745, allocations: 430 kB / 361.9 MB, free: 9.848 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002773/0.08774, allocations: 136.8 kB / 362.1 MB, free: 9.715 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.08775, allocations: 4.062 kB / 362.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.674e-05/0.08783, allocations: 27.94 kB / 362.1 MB, free: 9.684 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004695/0.0883, allocations: 116.3 kB / 362.2 MB, free: 9.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006129/0.08893, allocations: 482.2 kB / 362.7 MB, free: 9.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002536/0.08919, allocations: 0.7521 MB / 363.4 MB, free: 8.277 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.151e-05/0.08925, allocations: 27.44 kB / 363.5 MB, free: 8.25 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.08926, allocations: 288 / 363.5 MB, free: 8.25 MB / 302.1 MB Notification: Performance of Templates: time 0.004823/0.09409, allocations: 3.18 MB / 366.7 MB, free: 5.082 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches