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.001104/0.001105, allocations: 113.6 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.00116/0.00116, allocations: 191 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.353/1.353, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001081, allocations: 51.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2803/0.2814, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.00401/0.2855, allocations: 1.885 MB / 402.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002034/0.2876, allocations: 1.044 MB / 403.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001871/0.2878, allocations: 7.938 kB / 403.2 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006289/0.2884, allocations: 139.6 kB / 403.3 MB, free: 5.742 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003457/0.2888, allocations: 119.5 kB / 403.4 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006545/0.2895, allocations: 202.8 kB / 403.6 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003084/0.2898, allocations: 179.5 kB / 403.8 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000131/0.2899, allocations: 33.52 kB / 403.8 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.2901, allocations: 79.64 kB / 403.9 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001426/0.2903, allocations: 75.62 kB / 404 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.077e-05/0.2903, allocations: 8 kB / 404 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.2905, allocations: 47.97 kB / 404 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.127e-05/0.2905, allocations: 43.84 kB / 404.1 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.465e-05/0.2906, allocations: 71.55 kB / 404.1 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003483/0.291, allocations: 210.2 kB / 404.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.291, allocations: 0 / 404.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.291, allocations: 0 / 404.4 MB, free: 4.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.211e-05/0.291, allocations: 4 kB / 404.4 MB, free: 4.695 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.0008008/0.2918, allocations: 0.5116 MB / 404.9 MB, free: 4.129 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.2919, allocations: 11.89 kB / 404.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.706e-05/0.2919, allocations: 34.75 kB / 404.9 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.674e-05/0.292, allocations: 28.73 kB / 404.9 MB, free: 4.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.2924, allocations: 274.9 kB / 405.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/0.2924, allocations: 4.375 kB / 405.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.2924, allocations: 11.94 kB / 405.2 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003347/0.2928, allocations: 142.7 kB / 405.4 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.2928, allocations: 7.984 kB / 405.4 MB, free: 3.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.277e-05/0.2928, allocations: 4 kB / 405.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.684e-06/0.2928, allocations: 0 / 405.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001108/0.2929, allocations: 39.92 kB / 405.4 MB, free: 3.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004931/0.2934, allocations: 350.5 kB / 405.8 MB, free: 3.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002186/0.2937, allocations: 111.9 kB / 405.9 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.2938, allocations: 46.5 kB / 405.9 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.2938, allocations: 0 / 405.9 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001892/0.294, allocations: 83.33 kB / 406 MB, free: 2.824 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.294, allocations: 0 / 406 MB, free: 2.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.000354/0.2944, allocations: 141.4 kB / 406.1 MB, free: 2.68 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.239e-05/0.2945, allocations: 132.5 kB / 406.3 MB, free: 2.52 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002777/0.2948, allocations: 264.9 kB / 406.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.2948, allocations: 25.7 kB / 406.5 MB, free: 2.215 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.813e-05/0.2949, allocations: 120.3 kB / 406.7 MB, free: 2.094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.982e-05/0.2949, allocations: 23.84 kB / 406.7 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.982e-05/0.295, allocations: 33.7 kB / 406.7 MB, free: 2.031 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.2951, allocations: 322.8 kB / 407 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.244e-05/0.2952, allocations: 19.98 kB / 407.1 MB, free: 1.688 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.52e-05/0.2953, allocations: 73.94 kB / 407.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.2955, allocations: 80.19 kB / 407.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2955, allocations: 0 / 407.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002228/0.2957, allocations: 113.6 kB / 407.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.2957, allocations: 8.031 kB / 407.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2957, allocations: 0 / 407.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.2958, allocations: 4 kB / 407.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.665e-05/0.2958, allocations: 15.92 kB / 407.3 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.2959, allocations: 8.297 kB / 407.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.703e-05/0.2959, allocations: 15.89 kB / 407.4 MB, free: 1.332 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.296, allocations: 8 kB / 407.4 MB, free: 1.324 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.0001431/0.2961, allocations: 137.8 kB / 407.5 MB, free: 1.18 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.912e-05/0.2962, allocations: 69.53 kB / 407.6 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.164e-05/0.2963, allocations: 13.72 kB / 407.6 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.2963, allocations: 4 kB / 407.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2963, allocations: 0 / 407.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.2963, allocations: 7.922 kB / 407.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002197/0.2965, allocations: 229.6 kB / 407.8 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.2965, allocations: 3.938 kB / 407.8 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.895e-05/0.2966, allocations: 8 kB / 407.8 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.2966, allocations: 0 / 407.8 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.287e-05/0.2966, allocations: 4.062 kB / 407.8 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.2966, allocations: 7.938 kB / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.2966, allocations: 0 / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002447/0.2969, allocations: 158.6 kB / 408 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001041/0.297, allocations: 108.9 kB / 408.1 MB, free: 488 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.169e-05/0.297, allocations: 3.984 kB / 408.1 MB, free: 484 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.073e-05/0.2971, allocations: 12 kB / 408.1 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.708e-05/0.2972, allocations: 7.938 kB / 408.1 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.2972, allocations: 7.984 kB / 408.1 MB, free: 456 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001989/0.2974, allocations: 192.5 kB / 408.3 MB, free: 264 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2974, allocations: 0 / 408.3 MB, free: 264 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002609/0.2977, allocations: 27.98 kB / 408.4 MB, free: 236 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.001542/0.2992, allocations: 1.002 MB / 409.4 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002325/0.2995, allocations: 63.92 kB / 409.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2995, allocations: 3.938 kB / 409.4 MB, free: 15.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.204e-05/0.2995, allocations: 28.23 kB / 409.5 MB, free: 15.26 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003876/0.2999, allocations: 65.52 kB / 409.5 MB, free: 15.2 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.3021, allocations: 1.921 MB / 411.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003307/0.3025, allocations: 0.7241 MB / 412.2 MB, free: 12.41 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.3026, allocations: 29.47 kB / 412.2 MB, free: 12.38 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.761e-05/0.3027, allocations: 51.42 kB / 412.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3027, allocations: 3.938 kB / 412.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02204/0.3248, allocations: 4.543 MB / 416.8 MB, free: 7.926 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.708/8.033, allocations: 12.5 kB / 416.8 MB, free: 7.914 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