Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001363/0.001363, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001554/0.001554, allocations: 213.9 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 230.5 MB / 257.4 MB, free: 7.73 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 67.89 kB / 377.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2671/0.269, allocations: 53.41 MB / 431.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample): time 0.003534/0.2726, allocations: 1.875 MB / 433 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002177/0.2747, allocations: 1.223 MB / 434.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.2749, allocations: 0 / 434.2 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003209/0.2752, allocations: 71.67 kB / 434.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004062/0.2756, allocations: 135.4 kB / 434.4 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006627/0.2763, allocations: 226.4 kB / 434.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002646/0.2765, allocations: 183.5 kB / 434.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.2766, allocations: 25.67 kB / 434.9 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.2768, allocations: 75.64 kB / 434.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.2769, allocations: 83.61 kB / 435 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.2769, allocations: 8 kB / 435 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000168/0.2771, allocations: 75.94 kB / 435.1 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.767e-05/0.2772, allocations: 63.75 kB / 435.2 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.454e-05/0.2773, allocations: 47.61 kB / 435.2 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003663/0.2776, allocations: 248.7 kB / 435.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.2776, allocations: 0 / 435.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2776, allocations: 0 / 435.4 MB, free: 2.105 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.2776, allocations: 7.938 kB / 435.5 MB, free: 2.098 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.0007635/0.2784, allocations: 478.5 kB / 435.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.2785, allocations: 11.98 kB / 435.9 MB, free: 1.582 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.329e-05/0.2785, allocations: 42.73 kB / 436 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.836e-05/0.2786, allocations: 20.8 kB / 436 MB, free: 1.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000438/0.279, allocations: 233.5 kB / 436.2 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.279, allocations: 384 / 436.2 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.314e-05/0.279, allocations: 16.31 kB / 436.2 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003821/0.2794, allocations: 184.5 kB / 436.4 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.2794, allocations: 0 / 436.4 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.2794, allocations: 0 / 436.4 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.379e-06/0.2794, allocations: 0 / 436.4 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001232/0.2796, allocations: 43.91 kB / 436.5 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000546/0.2801, allocations: 345.5 kB / 436.8 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002628/0.2804, allocations: 115.9 kB / 436.9 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.137e-05/0.2805, allocations: 46.56 kB / 437 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.2805, allocations: 4 kB / 437 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001836/0.2807, allocations: 83.31 kB / 437 MB, free: 316 kB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.342e-06/0.2807, allocations: 0 / 437 MB, free: 316 kB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004094/0.2811, allocations: 153.4 kB / 437.2 MB, free: 156 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.2812, allocations: 140.5 kB / 437.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003839/0.2816, allocations: 338 kB / 437.7 MB, free: 15.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.2816, allocations: 33.7 kB / 437.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.2817, allocations: 132.2 kB / 437.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.063e-05/0.2817, allocations: 19.88 kB / 437.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.091e-05/0.2818, allocations: 25.72 kB / 437.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.282, allocations: 342.8 kB / 438.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.24e-05/0.2821, allocations: 19.98 kB / 438.2 MB, free: 15.06 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.2822, allocations: 145.3 kB / 438.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.2824, allocations: 84.25 kB / 438.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.2824, allocations: 4 kB / 438.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002379/0.2826, allocations: 125.4 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.2826, allocations: 11.94 kB / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.518e-06/0.2826, allocations: 0 / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.2826, allocations: 4 kB / 438.6 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/0.2828, allocations: 19.98 kB / 438.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.2828, allocations: 8.062 kB / 438.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.314e-05/0.2828, allocations: 8 kB / 438.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.2829, allocations: 4 kB / 438.6 MB, free: 14.6 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.0001531/0.283, allocations: 162.8 kB / 438.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/0.2831, allocations: 73.44 kB / 438.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002929/0.2834, allocations: 123.4 kB / 439 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.2834, allocations: 0 / 439 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.2834, allocations: 4 kB / 439 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2834, allocations: 0 / 439 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002235/0.2836, allocations: 204.7 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.2837, allocations: 4 kB / 439.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.016e-05/0.2837, allocations: 15.92 kB / 439.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.2837, allocations: 4 kB / 439.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.2837, allocations: 0 / 439.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2837, allocations: 0 / 439.2 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.2837, allocations: 4 kB / 439.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002854/0.284, allocations: 174.5 kB / 439.4 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.4e-05/0.2841, allocations: 39.83 kB / 439.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.267e-05/0.2842, allocations: 4 kB / 439.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.156e-05/0.2842, allocations: 8 kB / 439.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.95e-05/0.2843, allocations: 7.984 kB / 439.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.2843, allocations: 4 kB / 439.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002746/0.2846, allocations: 253.2 kB / 439.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2846, allocations: 0 / 439.7 MB, free: 13.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002805/0.2849, allocations: 39.88 kB / 439.7 MB, free: 13.41 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.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.002336/0.2872, allocations: 1.058 MB / 440.8 MB, free: 12.47 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002881/0.2875, allocations: 83.83 kB / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2875, allocations: 0 / 440.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.726e-05/0.2876, allocations: 31.98 kB / 440.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004681/0.2881, allocations: 66.92 kB / 441 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003207/0.2913, allocations: 2.235 MB / 443.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001444/0.2914, allocations: 131.9 kB / 443.3 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001106/0.2915, allocations: 25.62 kB / 443.3 MB, free: 9.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.2916, allocations: 63.41 kB / 443.4 MB, free: 9.707 MB / 350.1 MB Notification: Performance of SimCode: time 1.242e-06/0.2916, allocations: 3.938 kB / 443.4 MB, free: 9.703 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03446/0.3261, allocations: 6.119 MB / 449.5 MB, free: 3.637 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.22, allocations: 15.42 kB / 449.6 MB, free: 3.625 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 13.783785016741604]