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.001606/0.001607, allocations: 108.1 kB / 17.06 MB, free: 6.137 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.001967/0.001967, allocations: 187.1 kB / 18 MB, free: 5.219 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.563/1.563, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001233, allocations: 47.92 kB / 351.3 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4126/0.4138, allocations: 49.43 MB / 400.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.004647/0.4186, allocations: 1.987 MB / 402.7 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002278/0.4209, allocations: 1.106 MB / 403.8 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.4211, allocations: 11.94 kB / 403.8 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007894/0.4219, allocations: 149.5 kB / 404 MB, free: 5.641 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003921/0.4223, allocations: 115.5 kB / 404.1 MB, free: 5.527 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008517/0.4232, allocations: 239.1 kB / 404.3 MB, free: 5.297 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003667/0.4235, allocations: 231.4 kB / 404.5 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.4237, allocations: 52.28 kB / 404.6 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.4239, allocations: 95.61 kB / 404.7 MB, free: 4.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001365/0.424, allocations: 87.61 kB / 404.8 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.114e-05/0.424, allocations: 12 kB / 404.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.4242, allocations: 67.89 kB / 404.8 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.846e-05/0.4243, allocations: 55.77 kB / 404.9 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001049/0.4244, allocations: 83.47 kB / 405 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000347/0.4248, allocations: 262.8 kB / 405.2 MB, free: 4.367 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.4248, allocations: 0 / 405.2 MB, free: 4.367 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4248, allocations: 0 / 405.2 MB, free: 4.367 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.4248, allocations: 0 / 405.2 MB, free: 4.367 MB / 318.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.0009455/0.4258, allocations: 0.5405 MB / 405.8 MB, free: 3.773 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.4258, allocations: 15.89 kB / 405.8 MB, free: 3.758 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.443e-05/0.4259, allocations: 28.66 kB / 405.8 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003764/0.4263, allocations: 286.7 kB / 406.1 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.4263, allocations: 8.375 kB / 406.1 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.111e-05/0.4263, allocations: 20.12 kB / 406.1 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006457/0.427, allocations: 295 kB / 406.4 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.427, allocations: 0 / 406.4 MB, free: 3.074 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.009e-05/0.427, allocations: 8 kB / 406.4 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.427, allocations: 4 kB / 406.4 MB, free: 3.062 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001524/0.4272, allocations: 59.91 kB / 406.5 MB, free: 3.004 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006236/0.4278, allocations: 386.4 kB / 406.9 MB, free: 2.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003807/0.4282, allocations: 179.9 kB / 407 MB, free: 2.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.4284, allocations: 82.55 kB / 407.1 MB, free: 2.277 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.162e-05/0.4284, allocations: 7.984 kB / 407.1 MB, free: 2.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000239/0.4287, allocations: 83.27 kB / 407.2 MB, free: 2.176 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.804e-06/0.4287, allocations: 0 / 407.2 MB, free: 2.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005685/0.4293, allocations: 217.3 kB / 407.4 MB, free: 1.957 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001034/0.4294, allocations: 144.8 kB / 407.6 MB, free: 1.785 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003769/0.4298, allocations: 276.8 kB / 407.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/0.4298, allocations: 33.7 kB / 407.9 MB, free: 1.461 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.153e-05/0.4299, allocations: 128.6 kB / 408 MB, free: 1.332 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.447e-05/0.4299, allocations: 19.8 kB / 408 MB, free: 1.312 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001383/0.4301, allocations: 57.84 kB / 408.1 MB, free: 1.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.4303, allocations: 338.8 kB / 408.4 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.064e-05/0.4304, allocations: 36.45 kB / 408.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.4306, allocations: 174.7 kB / 408.6 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00027/0.4308, allocations: 211.5 kB / 408.8 MB, free: 392 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.546e-06/0.4309, allocations: 3.938 kB / 408.8 MB, free: 388 kB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003581/0.4312, allocations: 221.5 kB / 409 MB, free: 160 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.805e-05/0.4312, allocations: 4 kB / 409 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.4313, allocations: 8.031 kB / 409 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.521e-05/0.4313, allocations: 8 kB / 409.1 MB, free: 140 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001156/0.4314, allocations: 23.92 kB / 409.1 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.788e-05/0.4314, allocations: 11.97 kB / 409.1 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001202/0.4316, allocations: 19.88 kB / 409.1 MB, free: 84 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.851e-05/0.4316, allocations: 16 kB / 409.1 MB, free: 68 kB / 318.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.0001961/0.4318, allocations: 156 kB / 409.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001957/0.432, allocations: 133.3 kB / 409.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.529e-05/0.4321, allocations: 29.7 kB / 409.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-06/0.4321, allocations: 4.406 kB / 409.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.4321, allocations: 4 kB / 409.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.4321, allocations: 3.938 kB / 409.4 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002396/0.4324, allocations: 241.5 kB / 409.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/0.4324, allocations: 4 kB / 409.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.862e-05/0.4324, allocations: 11.92 kB / 409.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.059e-06/0.4325, allocations: 4 kB / 409.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.805e-05/0.4325, allocations: 4 kB / 409.7 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.436e-06/0.4325, allocations: 8 kB / 409.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.4325, allocations: 0 / 409.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003767/0.4329, allocations: 227.8 kB / 409.9 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.433, allocations: 120.8 kB / 410.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.36e-05/0.4331, allocations: 15.98 kB / 410.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.674e-05/0.4331, allocations: 0 / 410.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.153e-05/0.4332, allocations: 8 kB / 410.1 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.254e-05/0.4332, allocations: 19.92 kB / 410.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001926/0.4334, allocations: 196.5 kB / 410.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4334, allocations: 0 / 410.3 MB, free: 14.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000338/0.4338, allocations: 43.94 kB / 410.3 MB, free: 14.75 MB / 334.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.001116/0.4349, allocations: 425.7 kB / 410.7 MB, free: 14.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003536/0.4353, allocations: 147.8 kB / 410.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.4353, allocations: 0 / 410.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.583e-05/0.4354, allocations: 27.92 kB / 410.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005656/0.436, allocations: 111 kB / 411 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008776/0.4368, allocations: 391.6 kB / 411.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005244/0.4374, allocations: 0.7556 MB / 412.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001335/0.4375, allocations: 26.17 kB / 412.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.383e-05/0.4376, allocations: 31.42 kB / 412.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of SimCode: time 6.22e-07/0.4376, allocations: 0 / 412.2 MB, free: 12.95 MB / 334.1 MB Notification: Performance of Templates: time 0.007943/0.4456, allocations: 3.03 MB / 415.3 MB, free: 9.953 MB / 334.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins/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