Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001396/0.001396, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.001414/0.001414, allocations: 216.4 kB / 23.73 MB, free: 4.531 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.464/1.464, allocations: 230.5 MB / 257.4 MB, free: 7.75 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.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002172/0.002172, allocations: 63.89 kB / 377.7 MB, free: 2.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3258/0.328, allocations: 53.4 MB / 431.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample): time 0.005177/0.3332, allocations: 1.882 MB / 433 MB, free: 4.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003341/0.3365, allocations: 1.153 MB / 434.2 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001744/0.3367, allocations: 3.938 kB / 434.2 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008311/0.3375, allocations: 154.7 kB / 434.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006395/0.3382, allocations: 163.4 kB / 434.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007379/0.3389, allocations: 167.4 kB / 434.6 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003722/0.3393, allocations: 191.5 kB / 434.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.3394, allocations: 25.53 kB / 434.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001659/0.3396, allocations: 79.64 kB / 434.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.3398, allocations: 83.61 kB / 435 MB, free: 2.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.492e-05/0.3398, allocations: 8 kB / 435 MB, free: 2.531 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002207/0.34, allocations: 59.94 kB / 435.1 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.689e-05/0.3401, allocations: 43.78 kB / 435.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.3402, allocations: 55.61 kB / 435.2 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004732/0.3407, allocations: 209 kB / 435.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3407, allocations: 0 / 435.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3407, allocations: 0 / 435.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.3407, allocations: 0 / 435.4 MB, free: 2.172 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.001009/0.3417, allocations: 458.7 kB / 435.8 MB, free: 1.688 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.3418, allocations: 11.98 kB / 435.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.429e-05/0.3418, allocations: 38.73 kB / 435.9 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.091e-05/0.3418, allocations: 24.8 kB / 435.9 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003722/0.3422, allocations: 201.2 kB / 436.1 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.3422, allocations: 16.34 kB / 436.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.624e-05/0.3423, allocations: 4.375 kB / 436.1 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003543/0.3426, allocations: 149.9 kB / 436.3 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.3426, allocations: 0 / 436.3 MB, free: 1.195 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.111e-05/0.3426, allocations: 3.938 kB / 436.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.3426, allocations: 4 kB / 436.3 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001184/0.3428, allocations: 39.95 kB / 436.3 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000538/0.3433, allocations: 329.4 kB / 436.6 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002647/0.3436, allocations: 103.9 kB / 436.7 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001024/0.3437, allocations: 46.56 kB / 436.8 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.3437, allocations: 4 kB / 436.8 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001935/0.3439, allocations: 71.33 kB / 436.9 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.088e-05/0.3439, allocations: 0 / 436.9 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0004432/0.3443, allocations: 149.4 kB / 437 MB, free: 364 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.3445, allocations: 114.8 kB / 437.1 MB, free: 224 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003743/0.3448, allocations: 269.5 kB / 437.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.553e-05/0.3449, allocations: 33.7 kB / 437.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.388e-05/0.345, allocations: 116.1 kB / 437.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.72e-05/0.345, allocations: 15.89 kB / 437.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.44e-05/0.345, allocations: 29.67 kB / 437.6 MB, free: 15.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3452, allocations: 338.8 kB / 437.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.613e-05/0.3453, allocations: 28.17 kB / 437.9 MB, free: 15.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000112/0.3454, allocations: 90.78 kB / 438 MB, free: 15.26 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001484/0.3455, allocations: 84.25 kB / 438.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3455, allocations: 0 / 438.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002178/0.3458, allocations: 117.5 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.3458, allocations: 4 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3458, allocations: 4 kB / 438.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.3458, allocations: 0 / 438.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.083e-05/0.3459, allocations: 19.98 kB / 438.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.3459, allocations: 0 / 438.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.673e-05/0.346, allocations: 16.02 kB / 438.3 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.679e-05/0.346, allocations: 7.984 kB / 438.3 MB, free: 14.99 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,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.0001362/0.3461, allocations: 146.5 kB / 438.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.438e-05/0.3462, allocations: 61.59 kB / 438.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002512/0.3465, allocations: 115.2 kB / 438.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.3465, allocations: 4 kB / 438.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3465, allocations: 0 / 438.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.3465, allocations: 0 / 438.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00021/0.3467, allocations: 192.7 kB / 438.8 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.3467, allocations: 8 kB / 438.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.374e-05/0.3467, allocations: 7.984 kB / 438.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3467, allocations: 0 / 438.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.3467, allocations: 7.938 kB / 438.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.3467, allocations: 64 / 438.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.3467, allocations: 4 kB / 438.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.347, allocations: 170.5 kB / 439 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.364e-05/0.3471, allocations: 35.78 kB / 439 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.3471, allocations: 7.938 kB / 439 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.412e-05/0.3472, allocations: 11.98 kB / 439 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.172e-05/0.3472, allocations: 4 kB / 439 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.645e-05/0.3472, allocations: 4 kB / 439 MB, free: 14.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00023/0.3475, allocations: 204.5 kB / 439.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3475, allocations: 0 / 439.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002836/0.3477, allocations: 31.92 kB / 439.3 MB, free: 13.91 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,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.3499, allocations: 1.03 MB / 440.3 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002307/0.3502, allocations: 71.91 kB / 440.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3502, allocations: 0 / 440.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.361e-05/0.3502, allocations: 27.92 kB / 440.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004077/0.3506, allocations: 81.09 kB / 440.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002495/0.3531, allocations: 1.965 MB / 442.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001317/0.3533, allocations: 123.9 kB / 442.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.411e-05/0.3534, allocations: 25.61 kB / 442.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.956e-05/0.3535, allocations: 51.42 kB / 442.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3535, allocations: 0 / 442.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03387/0.3873, allocations: 5.407 MB / 448 MB, free: 5.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/11.25, allocations: 0 / 448 MB, free: 5.168 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79247e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.82787168212235]