Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",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.001169/0.001169, allocations: 111.3 kB / 17.06 MB, free: 5.82 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.00127/0.00127, allocations: 195.9 kB / 18 MB, free: 4.965 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.312/1.312, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001105/0.001105, allocations: 55.92 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.253, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003344/0.2564, allocations: 1.879 MB / 402.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001694/0.2581, allocations: 1.06 MB / 403.2 MB, free: 5.887 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.2582, allocations: 7.938 kB / 403.2 MB, free: 5.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005467/0.2588, allocations: 147.5 kB / 403.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002872/0.2591, allocations: 118 kB / 403.4 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005453/0.2596, allocations: 205.6 kB / 403.6 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002302/0.2599, allocations: 187.4 kB / 403.8 MB, free: 5.238 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.26, allocations: 25.55 kB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.2601, allocations: 83.62 kB / 403.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.2602, allocations: 63.7 kB / 404 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/0.2603, allocations: 19.98 kB / 404 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.2604, allocations: 47.98 kB / 404.1 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.786e-05/0.2605, allocations: 47.83 kB / 404.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.984e-05/0.2606, allocations: 67.48 kB / 404.2 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002942/0.2609, allocations: 210.3 kB / 404.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.2609, allocations: 0 / 404.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2609, allocations: 3.938 kB / 404.4 MB, free: 4.684 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.2609, allocations: 0 / 404.4 MB, free: 4.684 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.0007216/0.2616, allocations: 0.5154 MB / 404.9 MB, free: 4.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.2617, allocations: 16.03 kB / 404.9 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.902e-05/0.2617, allocations: 30.75 kB / 404.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.944e-05/0.2618, allocations: 20.8 kB / 405 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/0.2621, allocations: 275 kB / 405.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.57e-05/0.2622, allocations: 4.375 kB / 405.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.615e-05/0.2622, allocations: 7.938 kB / 405.2 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003033/0.2625, allocations: 150.7 kB / 405.4 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.2625, allocations: 3.938 kB / 405.4 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.2625, allocations: 8 kB / 405.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.2626, allocations: 0 / 405.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.786e-05/0.2627, allocations: 31.92 kB / 405.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004394/0.2631, allocations: 358.4 kB / 405.8 MB, free: 3.098 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002083/0.2633, allocations: 107.9 kB / 405.9 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.534e-05/0.2634, allocations: 46.56 kB / 405.9 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.239e-05/0.2634, allocations: 0 / 405.9 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001501/0.2636, allocations: 87.27 kB / 406 MB, free: 2.812 MB / 318.1 MB Notification: Performance of pre-optimization done (n=9): time 1.473e-06/0.2636, allocations: 0 / 406 MB, free: 2.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003389/0.264, allocations: 137.5 kB / 406.2 MB, free: 2.672 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.2641, allocations: 136.5 kB / 406.3 MB, free: 2.508 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003383/0.2644, allocations: 264.9 kB / 406.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.2645, allocations: 25.7 kB / 406.6 MB, free: 2.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.768e-05/0.2646, allocations: 120.1 kB / 406.7 MB, free: 2.082 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.282e-05/0.2646, allocations: 19.84 kB / 406.7 MB, free: 2.062 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.851e-05/0.2646, allocations: 33.95 kB / 406.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2647, allocations: 322.8 kB / 407.1 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.558e-05/0.2648, allocations: 23.98 kB / 407.1 MB, free: 1.676 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.259e-05/0.2649, allocations: 70.02 kB / 407.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001183/0.265, allocations: 80.25 kB / 407.2 MB, free: 1.492 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.265, allocations: 0 / 407.2 MB, free: 1.492 MB / 318.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001949/0.2652, allocations: 117.4 kB / 407.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.2653, allocations: 8 kB / 407.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.2653, allocations: 128 / 407.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.2653, allocations: 8 kB / 407.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.542e-05/0.2654, allocations: 11.98 kB / 407.4 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.2654, allocations: 4 kB / 407.4 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.571e-05/0.2655, allocations: 11.89 kB / 407.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.2655, allocations: 8 kB / 407.4 MB, free: 1.32 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,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 (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.000114/0.2656, allocations: 141.8 kB / 407.5 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.487e-05/0.2657, allocations: 57.59 kB / 407.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.574e-05/0.2657, allocations: 29.66 kB / 407.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.2657, allocations: 4 kB / 407.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.2658, allocations: 4.297 kB / 407.6 MB, free: 1.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2658, allocations: 3.938 kB / 407.6 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.266, allocations: 225.5 kB / 407.8 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.266, allocations: 8 kB / 407.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.566e-05/0.266, allocations: 7.938 kB / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.266, allocations: 0 / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.266, allocations: 4 kB / 407.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.266, allocations: 7.984 kB / 407.9 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.266, allocations: 0 / 407.9 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002154/0.2663, allocations: 154.6 kB / 408 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.839e-05/0.2664, allocations: 112.9 kB / 408.1 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.29e-05/0.2664, allocations: 3.984 kB / 408.1 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.995e-05/0.2665, allocations: 8 kB / 408.1 MB, free: 464 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.611e-05/0.2665, allocations: 11.94 kB / 408.2 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.2665, allocations: 7.984 kB / 408.2 MB, free: 444 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000169/0.2667, allocations: 188.5 kB / 408.4 MB, free: 256 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2667, allocations: 0 / 408.4 MB, free: 256 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002421/0.267, allocations: 31.98 kB / 408.4 MB, free: 224 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,shiftSample1.y,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 (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.001316/0.2683, allocations: 0.9988 MB / 409.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002067/0.2685, allocations: 75.84 kB / 409.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2685, allocations: 0 / 409.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.553e-05/0.2686, allocations: 20 kB / 409.5 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.269, allocations: 65.98 kB / 409.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002072/0.2711, allocations: 1.939 MB / 411.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002934/0.2714, allocations: 0.7202 MB / 412.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.809e-05/0.2715, allocations: 29.52 kB / 412.2 MB, free: 12.36 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.843e-05/0.2716, allocations: 51.42 kB / 412.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2716, allocations: 0 / 412.3 MB, free: 12.3 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02504/0.2967, allocations: 4.595 MB / 416.9 MB, free: 7.859 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.966/8.263, allocations: 8.547 kB / 416.9 MB, free: 7.852 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_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_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches