Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001611/0.001611, allocations: 202.9 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.386/1.386, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 43.92 kB / 377.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2532, allocations: 53.37 MB / 431.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.002816/0.256, allocations: 1.565 MB / 432.6 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000981/0.257, allocations: 0.5259 MB / 433.2 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.021e-05/0.2571, allocations: 4 kB / 433.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.991e-05/0.2571, allocations: 3.938 kB / 433.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.2572, allocations: 15.86 kB / 433.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003092/0.2575, allocations: 59.75 kB / 433.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000116/0.2577, allocations: 55.78 kB / 433.3 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.936e-05/0.2578, allocations: 8.188 kB / 433.3 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001144/0.2579, allocations: 27.91 kB / 433.3 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.966e-05/0.2579, allocations: 27.86 kB / 433.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.2579, allocations: 0 / 433.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.732e-05/0.258, allocations: 8 kB / 433.4 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.575e-05/0.258, allocations: 15.92 kB / 433.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.384e-05/0.2581, allocations: 15.88 kB / 433.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.2582, allocations: 73.3 kB / 433.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2582, allocations: 0 / 433.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2582, allocations: 0 / 433.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.2582, allocations: 0 / 433.5 MB, free: 4.238 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004793/0.2587, allocations: 309.9 kB / 433.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.2587, allocations: 8.031 kB / 433.8 MB, free: 3.898 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.63e-05/0.2588, allocations: 42.75 kB / 433.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.2589, allocations: 20.86 kB / 433.8 MB, free: 3.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002434/0.2592, allocations: 149.2 kB / 434 MB, free: 3.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.055e-06/0.2592, allocations: 4.125 kB / 434 MB, free: 3.656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.566e-05/0.2592, allocations: 7.938 kB / 434 MB, free: 3.648 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002603/0.2595, allocations: 109 kB / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.954e-06/0.2595, allocations: 0 / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.825e-06/0.2595, allocations: 0 / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2595, allocations: 0 / 434.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.237e-05/0.2595, allocations: 19.92 kB / 434.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003066/0.2599, allocations: 228.8 kB / 434.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.481e-05/0.2599, allocations: 45.16 kB / 434.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.828e-05/0.26, allocations: 21.77 kB / 434.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.707e-05/0.26, allocations: 0 / 434.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.26, allocations: 38.56 kB / 434.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 8.32e-07/0.26, allocations: 0 / 434.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002473/0.2603, allocations: 69.56 kB / 434.5 MB, free: 3.023 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.241e-05/0.2603, allocations: 77.11 kB / 434.6 MB, free: 2.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.2605, allocations: 160.6 kB / 434.8 MB, free: 2.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.2605, allocations: 25.7 kB / 434.8 MB, free: 2.734 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.314e-05/0.2605, allocations: 92.09 kB / 434.9 MB, free: 2.641 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.05e-05/0.2605, allocations: 0 / 434.9 MB, free: 2.641 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.602e-05/0.2606, allocations: 21.91 kB / 434.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.2607, allocations: 322.8 kB / 435.2 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.949e-05/0.2608, allocations: 8 kB / 435.2 MB, free: 2.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4e-05/0.2608, allocations: 17.7 kB / 435.2 MB, free: 2.258 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.41e-05/0.2609, allocations: 29.7 kB / 435.3 MB, free: 2.223 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.2609, allocations: 0 / 435.3 MB, free: 2.223 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001191/0.261, allocations: 61.67 kB / 435.3 MB, free: 2.156 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.261, allocations: 8 kB / 435.3 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.261, allocations: 4 kB / 435.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.261, allocations: 0 / 435.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.278e-05/0.2611, allocations: 7.984 kB / 435.3 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.2611, allocations: 3.938 kB / 435.3 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.33e-05/0.2611, allocations: 4 kB / 435.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.2611, allocations: 0 / 435.4 MB, free: 2.129 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 9.781e-05/0.2612, allocations: 121.8 kB / 435.5 MB, free: 2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.018e-05/0.2613, allocations: 37.59 kB / 435.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.387e-05/0.2613, allocations: 15.88 kB / 435.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.2613, allocations: 3.984 kB / 435.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.2613, allocations: 7.938 kB / 435.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.2613, allocations: 0 / 435.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001625/0.2615, allocations: 132.8 kB / 435.7 MB, free: 1.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2615, allocations: 4 kB / 435.7 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.55e-05/0.2615, allocations: 7.984 kB / 435.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.2616, allocations: 0 / 435.7 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.2616, allocations: 3.938 kB / 435.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2616, allocations: 0 / 435.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.2616, allocations: 7.938 kB / 435.7 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001798/0.2617, allocations: 164.3 kB / 435.8 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.373e-05/0.2618, allocations: 11.94 kB / 435.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.2618, allocations: 0 / 435.9 MB, free: 1.543 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.99e-05/0.2619, allocations: 7.984 kB / 435.9 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.88e-05/0.2619, allocations: 3.938 kB / 435.9 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.2619, allocations: 0 / 435.9 MB, free: 1.531 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.251e-05/0.262, allocations: 115.2 kB / 436 MB, free: 1.418 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.262, allocations: 0 / 436 MB, free: 1.418 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002118/0.2622, allocations: 4 kB / 436 MB, free: 1.414 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0004313/0.2626, allocations: 0.6976 MB / 436.7 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001224/0.2627, allocations: 23.98 kB / 436.7 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.2627, allocations: 0 / 436.7 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.37e-05/0.2628, allocations: 4 kB / 436.7 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.2631, allocations: 30.72 kB / 436.7 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.2644, allocations: 1.339 MB / 438.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.893e-05/0.2645, allocations: 71.33 kB / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.564e-05/0.2645, allocations: 7.984 kB / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.932e-05/0.2646, allocations: 19.42 kB / 438.2 MB, free: 15.09 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2646, allocations: 4.031 kB / 438.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02783/0.2924, allocations: 2.223 MB / 440.4 MB, free: 13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.43/10.72, allocations: 11.19 kB / 440.4 MB, free: 13 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79319e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.ClockSignals.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: 12.993590469006449]