Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",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.00126/0.00126, allocations: 111.7 kB / 17.06 MB, free: 6.016 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.0013/0.0013, 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.362/1.362, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 47.92 kB / 350.8 MB, free: 3.801 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2622, allocations: 49.43 MB / 400.2 MB, free: 8.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.0035/0.2658, allocations: 1.908 MB / 402.1 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002015/0.2678, allocations: 1.095 MB / 403.2 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.268, allocations: 4 kB / 403.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006105/0.2687, allocations: 147.5 kB / 403.4 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003109/0.269, allocations: 122.7 kB / 403.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005838/0.2696, allocations: 206.6 kB / 403.7 MB, free: 5.383 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002541/0.2699, allocations: 195.4 kB / 403.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.27, allocations: 37.67 kB / 403.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.2701, allocations: 83.62 kB / 404 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001179/0.2703, allocations: 75.62 kB / 404.1 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.802e-05/0.2703, allocations: 8 kB / 404.1 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001419/0.2704, allocations: 59.91 kB / 404.2 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.895e-05/0.2705, allocations: 43.83 kB / 404.2 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.015e-05/0.2706, allocations: 71.55 kB / 404.3 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003387/0.271, allocations: 214.2 kB / 404.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.271, allocations: 0 / 404.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.057e-06/0.271, allocations: 0 / 404.5 MB, free: 4.609 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.271, allocations: 3.938 kB / 404.5 MB, free: 4.605 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008078/0.2718, allocations: 0.5349 MB / 405 MB, free: 4.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.2718, allocations: 8.031 kB / 405 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.915e-05/0.2719, allocations: 38.75 kB / 405.1 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.455e-05/0.272, allocations: 20.8 kB / 405.1 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003742/0.2723, allocations: 282.9 kB / 405.4 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.2724, allocations: 8.312 kB / 405.4 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.231e-05/0.2724, allocations: 15.94 kB / 405.4 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003285/0.2727, allocations: 163.6 kB / 405.5 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.2727, allocations: 4 kB / 405.5 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.2728, allocations: 0 / 405.5 MB, free: 3.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.2728, allocations: 4 kB / 405.5 MB, free: 3.406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001101/0.2729, allocations: 39.92 kB / 405.6 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004868/0.2734, allocations: 371.2 kB / 405.9 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002524/0.2736, allocations: 138.5 kB / 406.1 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.579e-05/0.2737, allocations: 51.42 kB / 406.1 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.2738, allocations: 8 kB / 406.1 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000149/0.2739, allocations: 75.33 kB / 406.2 MB, free: 2.617 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.493e-06/0.2739, allocations: 0 / 406.2 MB, free: 2.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003879/0.2743, allocations: 165.7 kB / 406.4 MB, free: 2.449 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.588e-05/0.2744, allocations: 158.3 kB / 406.5 MB, free: 2.258 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002935/0.2747, allocations: 272.9 kB / 406.8 MB, free: 1.98 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.2748, allocations: 29.7 kB / 406.8 MB, free: 1.945 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.159e-05/0.2749, allocations: 116.4 kB / 406.9 MB, free: 1.824 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.916e-05/0.2749, allocations: 27.77 kB / 407 MB, free: 1.797 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.267e-05/0.275, allocations: 37.66 kB / 407 MB, free: 1.754 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.2751, allocations: 330.8 kB / 407.3 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.271e-05/0.2752, allocations: 19.98 kB / 407.3 MB, free: 1.402 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.2753, allocations: 83.66 kB / 407.4 MB, free: 1.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/0.2755, allocations: 94.22 kB / 407.5 MB, free: 1.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.167e-06/0.2755, allocations: 4 kB / 407.5 MB, free: 1.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002394/0.2758, allocations: 137.4 kB / 407.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.2758, allocations: 4 kB / 407.7 MB, free: 1.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.2758, allocations: 4 kB / 407.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.2758, allocations: 0 / 407.7 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.122e-05/0.2759, allocations: 15.98 kB / 407.7 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/0.2759, allocations: 0 / 407.7 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.545e-05/0.276, allocations: 19.83 kB / 407.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.708e-06/0.276, allocations: 4 kB / 407.7 MB, free: 0.9883 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.000141/0.2762, allocations: 149.9 kB / 407.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.2763, allocations: 77.53 kB / 407.9 MB, free: 0.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.542e-05/0.2763, allocations: 25.64 kB / 408 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2763, allocations: 0 / 408 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.2764, allocations: 4 kB / 408 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.2764, allocations: 3.938 kB / 408 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000223/0.2766, allocations: 237.6 kB / 408.2 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2766, allocations: 0 / 408.2 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.993e-05/0.2766, allocations: 11.92 kB / 408.2 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.2767, allocations: 4.094 kB / 408.2 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.091e-05/0.2767, allocations: 4 kB / 408.2 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.2767, allocations: 0 / 408.2 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.2767, allocations: 4 kB / 408.2 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002689/0.277, allocations: 175.5 kB / 408.4 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.701e-05/0.2771, allocations: 101 kB / 408.5 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.1e-05/0.2771, allocations: 8 kB / 408.5 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.441e-05/0.2772, allocations: 7.984 kB / 408.5 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.1e-05/0.2772, allocations: 15.94 kB / 408.5 MB, free: 64 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.947e-05/0.2772, allocations: 8 kB / 408.5 MB, free: 56 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002123/0.2775, allocations: 200.4 kB / 408.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2775, allocations: 0 / 408.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002616/0.2777, allocations: 35.92 kB / 408.8 MB, free: 15.82 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.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 (11): * Single equations (assignments): 9 * 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.001923/0.2797, allocations: 1.017 MB / 409.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002403/0.2799, allocations: 75.91 kB / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2799, allocations: 0 / 409.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.599e-05/0.28, allocations: 31.92 kB / 409.9 MB, free: 14.82 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004426/0.2805, allocations: 93.44 kB / 410 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002333/0.2828, allocations: 2.023 MB / 412 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.2832, allocations: 0.7358 MB / 412.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.362e-05/0.2833, allocations: 17.55 kB / 412.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.896e-05/0.2834, allocations: 55.41 kB / 412.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of SimCode: time 2.8e-07/0.2834, allocations: 0 / 412.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02715/0.3105, allocations: 4.917 MB / 417.7 MB, free: 6.973 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.125/8.435, allocations: 0.625 kB / 417.7 MB, free: 6.973 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches