Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001343/0.001343, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.001507/0.001507, allocations: 208.3 kB / 20.75 MB, free: 2.297 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.433/1.433, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001592, allocations: 51.92 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09237/0.09396, allocations: 53.32 MB / 426.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003607/0.09757, allocations: 1.905 MB / 428.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.0998, allocations: 1.301 MB / 429.5 MB, free: 1.543 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000138/0.09994, allocations: 3.938 kB / 429.5 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003164/0.1003, allocations: 75.59 kB / 429.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004237/0.1007, allocations: 131.4 kB / 429.7 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006865/0.1014, allocations: 222.1 kB / 429.9 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002924/0.1017, allocations: 179.5 kB / 430.1 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.1018, allocations: 21.55 kB / 430.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001391/0.1019, allocations: 87.56 kB / 430.2 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.102, allocations: 87.67 kB / 430.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.404e-05/0.1021, allocations: 8 kB / 430.3 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001794/0.1022, allocations: 75.88 kB / 430.4 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.491e-05/0.1023, allocations: 51.78 kB / 430.4 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.987e-05/0.1024, allocations: 79.47 kB / 430.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003853/0.1028, allocations: 243 kB / 430.7 MB, free: 312 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.1028, allocations: 0 / 430.7 MB, free: 312 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1028, allocations: 0 / 430.7 MB, free: 312 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.1028, allocations: 0 / 430.7 MB, free: 312 kB / 350.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.1732/0.276, allocations: 0.5444 MB / 431.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.72e-05/0.2761, allocations: 8.094 kB / 431.3 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.56e-05/0.2761, allocations: 37 kB / 431.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.335e-05/0.2762, allocations: 27.33 kB / 431.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004466/0.2767, allocations: 292 kB / 431.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.2767, allocations: 9.906 kB / 431.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.612e-05/0.2767, allocations: 5.016 kB / 431.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003447/0.277, allocations: 156.6 kB / 431.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.277, allocations: 4.844 kB / 431.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.2771, allocations: 0.9688 kB / 431.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.2771, allocations: 3.531 kB / 431.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001181/0.2772, allocations: 35.08 kB / 431.9 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004701/0.2776, allocations: 389.2 kB / 432.2 MB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002331/0.2779, allocations: 117.6 kB / 432.4 MB, free: 10.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.549e-05/0.278, allocations: 46.45 kB / 432.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.278, allocations: 7.25 kB / 432.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001584/0.2782, allocations: 78.62 kB / 432.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.403e-06/0.2782, allocations: 1.031 kB / 432.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.000392/0.2785, allocations: 156.2 kB / 432.6 MB, free: 10.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.343e-05/0.2786, allocations: 160.4 kB / 432.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003313/0.2789, allocations: 339.6 kB / 433.1 MB, free: 10.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.455e-05/0.2789, allocations: 27.23 kB / 433.2 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.734e-05/0.279, allocations: 132.7 kB / 433.3 MB, free: 9.969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.297e-05/0.279, allocations: 20.59 kB / 433.3 MB, free: 9.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.613e-05/0.2791, allocations: 28.86 kB / 433.3 MB, free: 9.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.341e-05/0.2791, allocations: 338.4 kB / 433.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.542e-05/0.2792, allocations: 24.28 kB / 433.7 MB, free: 9.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.735e-05/0.2793, allocations: 85.42 kB / 433.8 MB, free: 9.566 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.2794, allocations: 82.53 kB / 433.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.2794, allocations: 1.781 kB / 433.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002029/0.2796, allocations: 129.5 kB / 434 MB, free: 9.484 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.2796, allocations: 7.266 kB / 434 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.2796, allocations: 2.531 kB / 434 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.2797, allocations: 8.156 kB / 434 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.2798, allocations: 16.92 kB / 434 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.2798, allocations: 4.688 kB / 434 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.356e-05/0.2798, allocations: 4.281 kB / 434 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.658e-06/0.2799, allocations: 4 kB / 434 MB, free: 9.484 MB / 350.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,table.y,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.0001134/0.28, allocations: 168.9 kB / 434.2 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.352e-05/0.28, allocations: 67.66 kB / 434.3 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.332e-05/0.2801, allocations: 30.95 kB / 434.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2801, allocations: 2.906 kB / 434.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2801, allocations: 1.25 kB / 434.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.2801, allocations: 2.391 kB / 434.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000151/0.2803, allocations: 245.8 kB / 434.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2803, allocations: 0 / 434.5 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.005e-05/0.2803, allocations: 17.48 kB / 434.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.2803, allocations: 0 / 434.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.172e-05/0.2803, allocations: 4.797 kB / 434.6 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.2803, allocations: 8.75 kB / 434.6 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2803, allocations: 0 / 434.6 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002239/0.2806, allocations: 166.3 kB / 434.7 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.989e-05/0.2806, allocations: 119.1 kB / 434.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.047e-05/0.2807, allocations: 4.781 kB / 434.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.259e-05/0.2807, allocations: 6.344 kB / 434.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.195e-05/0.2808, allocations: 13.45 kB / 434.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.2808, allocations: 3.844 kB / 434.9 MB, free: 8.906 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001947/0.281, allocations: 246 kB / 435.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.281, allocations: 1.062 kB / 435.1 MB, free: 8.824 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002669/0.2812, allocations: 34.08 kB / 435.1 MB, free: 8.824 MB / 350.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,table.y,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.001729/0.283, allocations: 1.023 MB / 436.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002225/0.2832, allocations: 80.64 kB / 436.2 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2832, allocations: 3.938 kB / 436.2 MB, free: 8.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.678e-05/0.2833, allocations: 27.91 kB / 436.3 MB, free: 8.141 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004014/0.2837, allocations: 59.05 kB / 436.3 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002078/0.2858, allocations: 2.233 MB / 438.6 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001724/0.2859, allocations: 0.7436 MB / 439.3 MB, free: 5.977 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.236e-05/0.286, allocations: 29.52 kB / 439.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.601e-05/0.2861, allocations: 63.5 kB / 439.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2861, allocations: 0 / 439.4 MB, free: 5.926 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0306/0.3167, allocations: 5.391 MB / 444.8 MB, free: 5.059 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.931/8.248, allocations: 5.406 kB / 444.8 MB, free: 5.055 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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: 10.696726232999936]