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.001301/0.001301, allocations: 107.5 kB / 20.44 MB, free: 1.207 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.001327/0.001327, allocations: 186.8 kB / 23.7 MB, free: 4.203 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.404/1.404, 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.001571/0.001571, allocations: 47.92 kB / 370.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2778, allocations: 52.18 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.003648/0.2815, allocations: 1.861 MB / 424.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002081/0.2836, allocations: 1.009 MB / 425.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.2837, allocations: 7.938 kB / 425.5 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007785/0.2845, allocations: 155.5 kB / 425.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003759/0.2849, allocations: 117.8 kB / 425.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006293/0.2855, allocations: 206.8 kB / 425.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002927/0.2858, allocations: 179.5 kB / 426.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001395/0.2859, allocations: 21.73 kB / 426.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001379/0.2861, allocations: 79.64 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.2862, allocations: 71.69 kB / 426.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.839e-05/0.2862, allocations: 8 kB / 426.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001604/0.2864, allocations: 63.89 kB / 426.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.219e-05/0.2865, allocations: 39.84 kB / 426.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.103e-05/0.2866, allocations: 55.66 kB / 426.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003834/0.287, allocations: 207.5 kB / 426.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.287, allocations: 0 / 426.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.287, allocations: 0 / 426.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.287, allocations: 0 / 426.6 MB, free: 10.34 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.0009299/0.2879, allocations: 450.7 kB / 427.1 MB, free: 9.859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.288, allocations: 12.03 kB / 427.1 MB, free: 9.848 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.016e-05/0.288, allocations: 38.75 kB / 427.1 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.189e-05/0.2881, allocations: 24.8 kB / 427.1 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004012/0.2885, allocations: 205.2 kB / 427.3 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.2885, allocations: 4.375 kB / 427.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/0.2885, allocations: 11.94 kB / 427.4 MB, free: 9.535 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003887/0.2889, allocations: 133.9 kB / 427.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.2889, allocations: 15.94 kB / 427.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.2889, allocations: 3.984 kB / 427.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.381e-06/0.2889, allocations: 0 / 427.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.289, allocations: 39.91 kB / 427.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005141/0.2896, allocations: 313.5 kB / 427.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002463/0.2898, allocations: 115.8 kB / 428 MB, free: 8.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.538e-05/0.2899, allocations: 50.5 kB / 428 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.456e-05/0.2899, allocations: 4 kB / 428 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001727/0.2901, allocations: 71.34 kB / 428.1 MB, free: 8.684 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.482e-06/0.2901, allocations: 0 / 428.1 MB, free: 8.684 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003794/0.2905, allocations: 149.5 kB / 428.2 MB, free: 8.531 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.56e-05/0.2906, allocations: 110.8 kB / 428.3 MB, free: 8.398 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002997/0.2909, allocations: 264.9 kB / 428.6 MB, free: 8.133 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.2909, allocations: 29.7 kB / 428.6 MB, free: 8.098 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.659e-05/0.291, allocations: 116.3 kB / 428.7 MB, free: 7.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.172e-05/0.291, allocations: 23.97 kB / 428.8 MB, free: 7.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-05/0.2911, allocations: 29.7 kB / 428.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.2912, allocations: 326.8 kB / 429.1 MB, free: 7.594 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.189e-05/0.2913, allocations: 19.98 kB / 429.1 MB, free: 7.574 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.2914, allocations: 90.84 kB / 429.2 MB, free: 7.461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001527/0.2916, allocations: 80.22 kB / 429.3 MB, free: 7.367 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.2916, allocations: 0 / 429.3 MB, free: 7.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002306/0.2918, allocations: 121.5 kB / 429.4 MB, free: 7.242 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2918, allocations: 4 kB / 429.4 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.2918, allocations: 3.984 kB / 429.4 MB, free: 7.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.954e-05/0.2919, allocations: 4 kB / 429.4 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.294e-05/0.2919, allocations: 11.94 kB / 429.4 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.292, allocations: 4 kB / 429.5 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.839e-05/0.292, allocations: 16.14 kB / 429.5 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.293e-05/0.292, allocations: 15.92 kB / 429.5 MB, free: 7.184 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.0001488/0.2922, allocations: 146 kB / 429.6 MB, free: 7.031 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.355e-05/0.2923, allocations: 57.55 kB / 429.7 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.2925, allocations: 119.3 kB / 429.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.207e-06/0.2926, allocations: 0 / 429.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2926, allocations: 4 kB / 429.8 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.136e-06/0.2926, allocations: 7.922 kB / 429.8 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002107/0.2928, allocations: 180.7 kB / 430 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.2928, allocations: 0 / 430 MB, free: 6.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.299e-05/0.2928, allocations: 8 kB / 430 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.2928, allocations: 8 kB / 430 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.2928, allocations: 4 kB / 430 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.2928, allocations: 0 / 430 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.2928, allocations: 4 kB / 430 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002645/0.2931, allocations: 170.5 kB / 430.2 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.619e-05/0.2932, allocations: 31.81 kB / 430.2 MB, free: 6.367 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.098e-05/0.2932, allocations: 8 kB / 430.2 MB, free: 6.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.661e-05/0.2933, allocations: 3.984 kB / 430.2 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.435e-05/0.2933, allocations: 7.938 kB / 430.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.2933, allocations: 15.98 kB / 430.2 MB, free: 6.332 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002057/0.2935, allocations: 192.5 kB / 430.4 MB, free: 6.145 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2935, allocations: 0 / 430.4 MB, free: 6.145 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002425/0.2938, allocations: 27.98 kB / 430.5 MB, free: 6.117 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.002116/0.2959, allocations: 1.039 MB / 431.5 MB, free: 5.23 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002321/0.2961, allocations: 67.91 kB / 431.6 MB, free: 5.164 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2961, allocations: 4.25 kB / 431.6 MB, free: 5.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.178e-05/0.2962, allocations: 27.98 kB / 431.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000405/0.2966, allocations: 60.25 kB / 431.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00233/0.2989, allocations: 1.941 MB / 433.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001375/0.2991, allocations: 123.4 kB / 433.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.188e-05/0.2992, allocations: 25.75 kB / 433.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.733e-05/0.2993, allocations: 55.41 kB / 433.8 MB, free: 2.789 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2993, allocations: 0 / 433.8 MB, free: 2.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03217/0.3314, allocations: 5.32 MB / 439.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/10.75, allocations: 10.81 kB / 439.1 MB, free: 13.54 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.175973054021597]