Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",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.001214/0.001214, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.001239/0.001239, allocations: 195 kB / 18 MB, free: 5.074 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.311/1.311, allocations: 222.9 MB / 241.7 MB, free: 15.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009869/0.000987, allocations: 43.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.2995, allocations: 49.44 MB / 400.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003343/0.3029, allocations: 1.882 MB / 402.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001696/0.3046, allocations: 1.04 MB / 403.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001322/0.3048, allocations: 11.94 kB / 403.2 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005931/0.3054, allocations: 143.5 kB / 403.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00032/0.3057, allocations: 118 kB / 403.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005304/0.3063, allocations: 201.5 kB / 403.6 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00023/0.3065, allocations: 191.5 kB / 403.8 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.3066, allocations: 25.55 kB / 403.8 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000112/0.3067, allocations: 83.62 kB / 403.9 MB, free: 5.105 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.3069, allocations: 71.62 kB / 404 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.3069, allocations: 12 kB / 404 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001202/0.307, allocations: 47.97 kB / 404 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.843e-05/0.3071, allocations: 47.83 kB / 404.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.007e-05/0.3072, allocations: 63.55 kB / 404.1 MB, free: 4.867 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002952/0.3075, allocations: 214.2 kB / 404.4 MB, free: 4.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.3075, allocations: 0 / 404.4 MB, free: 4.66 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3075, allocations: 0 / 404.4 MB, free: 4.66 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.3075, allocations: 0 / 404.4 MB, free: 4.66 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007976/0.3083, allocations: 0.5077 MB / 404.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.884e-05/0.3084, allocations: 12.03 kB / 404.9 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.762e-05/0.3084, allocations: 34.75 kB / 404.9 MB, free: 4.043 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.654e-05/0.3085, allocations: 20.8 kB / 404.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003581/0.3088, allocations: 282.9 kB / 405.2 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.823e-05/0.3089, allocations: 8.375 kB / 405.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.046e-05/0.3089, allocations: 7.938 kB / 405.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.3092, allocations: 150.7 kB / 405.4 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.3092, allocations: 0 / 405.4 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.3092, allocations: 0 / 405.4 MB, free: 3.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.033e-06/0.3092, allocations: 4 kB / 405.4 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001039/0.3094, allocations: 39.86 kB / 405.4 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004628/0.3098, allocations: 346.5 kB / 405.8 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/0.3101, allocations: 115.8 kB / 405.9 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.679e-05/0.3102, allocations: 42.56 kB / 405.9 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.3102, allocations: 8 kB / 405.9 MB, free: 2.883 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001523/0.3104, allocations: 75.33 kB / 406 MB, free: 2.797 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.3104, allocations: 0 / 406 MB, free: 2.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003691/0.3107, allocations: 141.6 kB / 406.1 MB, free: 2.652 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.3109, allocations: 136.8 kB / 406.3 MB, free: 2.488 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002987/0.3112, allocations: 264.9 kB / 406.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.3112, allocations: 29.7 kB / 406.5 MB, free: 2.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.287e-05/0.3113, allocations: 124.1 kB / 406.7 MB, free: 2.055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.545e-05/0.3113, allocations: 15.84 kB / 406.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.128e-05/0.3114, allocations: 29.7 kB / 406.7 MB, free: 2.004 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.3115, allocations: 326.8 kB / 407 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.153e-05/0.3116, allocations: 24.05 kB / 407.1 MB, free: 1.652 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.328e-05/0.3117, allocations: 73.94 kB / 407.1 MB, free: 1.559 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.3118, allocations: 88.19 kB / 407.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.3119, allocations: 0 / 407.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001992/0.3121, allocations: 109.5 kB / 407.3 MB, free: 1.344 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.3121, allocations: 8 kB / 407.3 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.3121, allocations: 0 / 407.3 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/0.3121, allocations: 0 / 407.3 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.105e-05/0.3122, allocations: 19.92 kB / 407.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.222e-06/0.3122, allocations: 0 / 407.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.579e-05/0.3123, allocations: 16.02 kB / 407.4 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.882e-06/0.3123, allocations: 4 kB / 407.4 MB, free: 1.297 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001186/0.3124, allocations: 137.8 kB / 407.5 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.313e-05/0.3125, allocations: 65.53 kB / 407.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.149e-05/0.3126, allocations: 25.7 kB / 407.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3126, allocations: 0 / 407.6 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3126, allocations: 4 kB / 407.6 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3126, allocations: 3.938 kB / 407.6 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000183/0.3128, allocations: 225.6 kB / 407.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.3128, allocations: 0 / 407.8 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.473e-05/0.3128, allocations: 4 kB / 407.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3128, allocations: 4 kB / 407.8 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.238e-05/0.3129, allocations: 3.984 kB / 407.8 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3129, allocations: 12 kB / 407.8 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.3129, allocations: 0 / 407.8 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002319/0.3131, allocations: 158.5 kB / 408 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.559e-05/0.3132, allocations: 120.9 kB / 408.1 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.746e-05/0.3132, allocations: 0 / 408.1 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.754e-05/0.3133, allocations: 4 kB / 408.1 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.34e-05/0.3134, allocations: 15.92 kB / 408.1 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.3134, allocations: 4 kB / 408.1 MB, free: 424 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001687/0.3136, allocations: 188.5 kB / 408.3 MB, free: 236 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3136, allocations: 0 / 408.3 MB, free: 236 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002583/0.3138, allocations: 35.98 kB / 408.4 MB, free: 200 kB / 318.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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001868/0.3157, allocations: 1.009 MB / 409.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002679/0.316, allocations: 71.84 kB / 409.4 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.316, allocations: 4 kB / 409.4 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.3161, allocations: 20 kB / 409.5 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.3166, allocations: 70.48 kB / 409.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.3188, allocations: 1.917 MB / 411.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.3191, allocations: 0.728 MB / 412.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.059e-05/0.3192, allocations: 25.47 kB / 412.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.288e-05/0.3193, allocations: 43.42 kB / 412.2 MB, free: 12.3 MB / 334.1 MB Notification: Performance of SimCode: time 5.82e-07/0.3193, allocations: 4 kB / 412.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02372/0.3431, allocations: 4.558 MB / 416.8 MB, free: 7.879 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.882/8.225, allocations: 16.44 kB / 416.8 MB, free: 7.863 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches