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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 107.5 kB / 20.44 MB, free: 1.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 181.6 kB / 23.7 MB, free: 4.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001513/0.001513, allocations: 47.92 kB / 370.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2748/0.2763, allocations: 52.19 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003342/0.2796, allocations: 1.865 MB / 424.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.2816, allocations: 1.009 MB / 425.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.2817, allocations: 3.938 kB / 425.5 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006384/0.2823, allocations: 159.5 kB / 425.6 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003101/0.2827, allocations: 111.6 kB / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005201/0.2832, allocations: 213.4 kB / 425.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002453/0.2834, allocations: 179.5 kB / 426.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.2835, allocations: 25.53 kB / 426.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001179/0.2837, allocations: 75.62 kB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.2838, allocations: 79.62 kB / 426.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.521e-05/0.2838, allocations: 8 kB / 426.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.2839, allocations: 59.95 kB / 426.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.615e-05/0.284, allocations: 39.84 kB / 426.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.592e-05/0.2841, allocations: 59.66 kB / 426.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003092/0.2844, allocations: 201 kB / 426.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.339e-06/0.2844, allocations: 0 / 426.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2844, allocations: 0 / 426.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.2844, allocations: 0 / 426.6 MB, free: 10.31 MB / 334.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.0007353/0.2852, allocations: 450.7 kB / 427.1 MB, free: 9.832 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.2852, allocations: 12.03 kB / 427.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.598e-05/0.2852, allocations: 30.75 kB / 427.1 MB, free: 9.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.189e-05/0.2853, allocations: 24.78 kB / 427.1 MB, free: 9.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003454/0.2856, allocations: 213.2 kB / 427.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.2856, allocations: 384 / 427.3 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.591e-05/0.2857, allocations: 11.94 kB / 427.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003167/0.286, allocations: 137.9 kB / 427.5 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.286, allocations: 0 / 427.5 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.286, allocations: 8 kB / 427.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.286, allocations: 0 / 427.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001059/0.2861, allocations: 43.86 kB / 427.5 MB, free: 9.305 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004861/0.2866, allocations: 325.5 kB / 427.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002236/0.2868, allocations: 115.8 kB / 428 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.933e-05/0.2869, allocations: 42.5 kB / 428 MB, free: 8.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.2869, allocations: 8 kB / 428 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001585/0.2871, allocations: 71.38 kB / 428.1 MB, free: 8.656 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.2871, allocations: 0 / 428.1 MB, free: 8.656 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.000379/0.2875, allocations: 149.4 kB / 428.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.782e-05/0.2876, allocations: 110.8 kB / 428.4 MB, free: 8.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002933/0.2879, allocations: 264.9 kB / 428.6 MB, free: 8.105 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.2879, allocations: 29.7 kB / 428.6 MB, free: 8.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.241e-05/0.288, allocations: 116.1 kB / 428.8 MB, free: 7.953 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.007e-05/0.288, allocations: 23.95 kB / 428.8 MB, free: 7.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.663e-05/0.288, allocations: 25.72 kB / 428.8 MB, free: 7.898 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.2882, allocations: 326.8 kB / 429.1 MB, free: 7.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.094e-05/0.2883, allocations: 24.23 kB / 429.1 MB, free: 7.547 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.2884, allocations: 94.84 kB / 429.2 MB, free: 7.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001443/0.2885, allocations: 80.16 kB / 429.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.2885, allocations: 0 / 429.3 MB, free: 7.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002074/0.2887, allocations: 113.5 kB / 429.4 MB, free: 7.219 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.2888, allocations: 8.156 kB / 429.4 MB, free: 7.211 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.2888, allocations: 4 kB / 429.4 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.2888, allocations: 4 kB / 429.4 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.885e-05/0.2889, allocations: 15.92 kB / 429.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.677e-06/0.2889, allocations: 4 kB / 429.5 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.657e-05/0.2889, allocations: 15.83 kB / 429.5 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.2889, allocations: 4 kB / 429.5 MB, free: 7.164 MB / 334.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.0001369/0.2891, allocations: 142.1 kB / 429.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.67e-05/0.2892, allocations: 65.48 kB / 429.7 MB, free: 6.945 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002438/0.2894, allocations: 127.4 kB / 429.8 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.2894, allocations: 0 / 429.8 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.2894, allocations: 7.938 kB / 429.8 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2894, allocations: 3.938 kB / 429.8 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002008/0.2896, allocations: 176.7 kB / 430 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.2896, allocations: 4 kB / 430 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.939e-05/0.2897, allocations: 4 kB / 430 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2897, allocations: 0 / 430 MB, free: 6.578 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.2897, allocations: 7.984 kB / 430 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.2897, allocations: 0 / 430 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2897, allocations: 0 / 430 MB, free: 6.57 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002639/0.2899, allocations: 174.5 kB / 430.2 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.174e-05/0.29, allocations: 35.81 kB / 430.2 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.778e-05/0.29, allocations: 4 kB / 430.2 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.806e-05/0.2901, allocations: 4 kB / 430.2 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.969e-05/0.2901, allocations: 11.92 kB / 430.2 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.2901, allocations: 4 kB / 430.2 MB, free: 6.316 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002077/0.2904, allocations: 196.5 kB / 430.4 MB, free: 6.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2904, allocations: 0 / 430.4 MB, free: 6.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002381/0.2906, allocations: 24 kB / 430.5 MB, free: 6.102 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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.002173/0.2928, allocations: 1.047 MB / 431.5 MB, free: 5.207 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002093/0.293, allocations: 67.91 kB / 431.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.293, allocations: 0 / 431.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.22e-05/0.2931, allocations: 23.98 kB / 431.6 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.2934, allocations: 73.88 kB / 431.7 MB, free: 5.051 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/0.2957, allocations: 1.941 MB / 433.6 MB, free: 2.988 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001293/0.2959, allocations: 123.2 kB / 433.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.812e-05/0.2959, allocations: 25.62 kB / 433.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.784e-05/0.296, allocations: 47.42 kB / 433.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.296, allocations: 0 / 433.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03299/0.329, allocations: 5.327 MB / 439.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.28, allocations: 3.859 kB / 439.1 MB, free: 13.52 MB / 350.1 MB " [Timeout remaining time 649] (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 1.79247e-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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! Error: Could not read variable shiftSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv. Warning: Get data of variable shiftSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.955847699195147]