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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001879/0.001879, allocations: 113.8 kB / 17.06 MB, free: 6.012 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.001804/0.001804, allocations: 189.4 kB / 18 MB, free: 5.098 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.403/1.403, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 55.84 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2682/0.2697, allocations: 49.42 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.00362/0.2734, allocations: 1.995 MB / 402.2 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001995/0.2754, allocations: 1.106 MB / 403.3 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.2755, allocations: 3.938 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006204/0.2762, allocations: 162.2 kB / 403.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000303/0.2765, allocations: 111.6 kB / 403.6 MB, free: 5.445 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007/0.2772, allocations: 241.4 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003085/0.2775, allocations: 231.3 kB / 404.1 MB, free: 4.984 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.2777, allocations: 48.28 kB / 404.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.2778, allocations: 95.61 kB / 404.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.278, allocations: 87.61 kB / 404.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.437e-05/0.278, allocations: 16 kB / 404.3 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001623/0.2782, allocations: 59.91 kB / 404.4 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.633e-05/0.2783, allocations: 55.77 kB / 404.4 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.2784, allocations: 87.47 kB / 404.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003848/0.2788, allocations: 258 kB / 404.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.2788, allocations: 0 / 404.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2788, allocations: 0 / 404.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.2788, allocations: 0 / 404.8 MB, free: 4.289 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.0009018/0.2797, allocations: 0.5622 MB / 405.3 MB, free: 3.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.2798, allocations: 8.031 kB / 405.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.931e-05/0.2799, allocations: 42.75 kB / 405.4 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.511e-05/0.2799, allocations: 28.78 kB / 405.4 MB, free: 3.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004023/0.2803, allocations: 278.9 kB / 405.7 MB, free: 3.277 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.782e-05/0.2804, allocations: 12.38 kB / 405.7 MB, free: 3.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.721e-05/0.2804, allocations: 23.92 kB / 405.7 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006109/0.281, allocations: 295 kB / 406 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.234e-05/0.2811, allocations: 0 / 406 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.506e-05/0.2811, allocations: 0 / 406 MB, free: 2.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.2811, allocations: 4 kB / 406 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.2813, allocations: 67.89 kB / 406.1 MB, free: 2.859 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005776/0.2819, allocations: 390.3 kB / 406.4 MB, free: 2.422 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003612/0.2822, allocations: 168 kB / 406.6 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001511/0.2824, allocations: 94.55 kB / 406.7 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.89e-05/0.2824, allocations: 0 / 406.7 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001783/0.2826, allocations: 83.31 kB / 406.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.794e-06/0.2826, allocations: 0 / 406.8 MB, free: 2.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005365/0.2832, allocations: 229.4 kB / 407 MB, free: 1.805 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.2833, allocations: 148.4 kB / 407.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003227/0.2836, allocations: 280.8 kB / 407.4 MB, free: 1.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.51e-05/0.2837, allocations: 29.7 kB / 407.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.2838, allocations: 116.7 kB / 407.6 MB, free: 1.188 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.912e-05/0.2839, allocations: 35.78 kB / 407.6 MB, free: 1.152 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.523e-05/0.2839, allocations: 53.89 kB / 407.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.2841, allocations: 330.8 kB / 408 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.97e-05/0.2842, allocations: 44.44 kB / 408 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.2844, allocations: 174.7 kB / 408.2 MB, free: 500 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002858/0.2847, allocations: 199.2 kB / 408.4 MB, free: 244 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2847, allocations: 0 / 408.4 MB, free: 244 kB / 318.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003777/0.2851, allocations: 229.3 kB / 408.6 MB, free: 8 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.2851, allocations: 8 kB / 408.6 MB, free: 0 / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.984e-05/0.2852, allocations: 4.047 kB / 408.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.808e-05/0.2852, allocations: 4 kB / 408.6 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.916e-05/0.2853, allocations: 23.88 kB / 408.6 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.2853, allocations: 4 kB / 408.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001121/0.2854, allocations: 19.89 kB / 408.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.2855, allocations: 16.38 kB / 408.7 MB, free: 15.93 MB / 334.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.0001882/0.2857, allocations: 168.2 kB / 408.8 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001991/0.2859, allocations: 137.4 kB / 409 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.822e-05/0.2859, allocations: 29.7 kB / 409 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.2859, allocations: 4 kB / 409 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.286, allocations: 0 / 409 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.286, allocations: 3.938 kB / 409 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002702/0.2862, allocations: 249.4 kB / 409.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2863, allocations: 4 kB / 409.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.845e-05/0.2863, allocations: 8.469 kB / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.2863, allocations: 4 kB / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.2863, allocations: 3.984 kB / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2863, allocations: 4 kB / 409.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2863, allocations: 0 / 409.3 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003771/0.2867, allocations: 236.1 kB / 409.5 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/0.2869, allocations: 116.9 kB / 409.6 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.773e-05/0.2869, allocations: 8 kB / 409.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.571e-05/0.287, allocations: 4 kB / 409.6 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.786e-05/0.287, allocations: 7.984 kB / 409.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.996e-05/0.2871, allocations: 11.94 kB / 409.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002039/0.2873, allocations: 200.4 kB / 409.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2873, allocations: 0 / 409.9 MB, free: 14.65 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003104/0.2876, allocations: 43.94 kB / 409.9 MB, free: 14.61 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.0023/0.2899, allocations: 1.163 MB / 411.1 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003438/0.2903, allocations: 143.8 kB / 411.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2903, allocations: 0 / 411.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.31e-05/0.2903, allocations: 23.98 kB / 411.2 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004977/0.2909, allocations: 108.3 kB / 411.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00288/0.2937, allocations: 2.361 MB / 413.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.2942, allocations: 0.7595 MB / 414.5 MB, free: 9.961 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.2943, allocations: 38.39 kB / 414.5 MB, free: 9.922 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001125/0.2944, allocations: 59.42 kB / 414.5 MB, free: 9.863 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2944, allocations: 4 kB / 414.6 MB, free: 9.859 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02828/0.3227, allocations: 5.525 MB / 420.1 MB, free: 4.48 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.046/8.369, allocations: 16.44 kB / 420.1 MB, free: 4.469 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > 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