Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.001562/0.001562, 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.001374/0.001374, allocations: 214.3 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.489/1.489, allocations: 230.5 MB / 257.4 MB, free: 7.785 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.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 63.89 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3349/0.3368, allocations: 53.42 MB / 431.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.0037/0.3405, allocations: 1.894 MB / 433 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002425/0.343, allocations: 1.25 MB / 434.3 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000171/0.3431, allocations: 7.938 kB / 434.3 MB, free: 3.316 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003678/0.3435, allocations: 67.66 kB / 434.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004288/0.3439, allocations: 135.4 kB / 434.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007464/0.3447, allocations: 234.3 kB / 434.7 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002831/0.345, allocations: 195.4 kB / 434.9 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.3451, allocations: 27.47 kB / 434.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001325/0.3452, allocations: 83.58 kB / 435 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001413/0.3454, allocations: 87.59 kB / 435.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.834e-05/0.3454, allocations: 15.94 kB / 435.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001699/0.3456, allocations: 71.95 kB / 435.2 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.375e-05/0.3456, allocations: 55.77 kB / 435.2 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.034e-05/0.3457, allocations: 59.55 kB / 435.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003977/0.3461, allocations: 254.9 kB / 435.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.3461, allocations: 0 / 435.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.3461, allocations: 0 / 435.5 MB, free: 2.055 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.3461, allocations: 0 / 435.5 MB, free: 2.055 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007775/0.3469, allocations: 498.3 kB / 436 MB, free: 1.531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.347, allocations: 11.98 kB / 436 MB, free: 1.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.192e-05/0.347, allocations: 46.73 kB / 436.1 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.592e-05/0.3471, allocations: 24.8 kB / 436.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004516/0.3475, allocations: 238.6 kB / 436.3 MB, free: 1.188 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.3476, allocations: 8.375 kB / 436.4 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.3476, allocations: 8.312 kB / 436.4 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004025/0.348, allocations: 201.4 kB / 436.6 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.348, allocations: 4 kB / 436.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.348, allocations: 4 kB / 436.6 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.348, allocations: 0 / 436.6 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001306/0.3481, allocations: 47.91 kB / 436.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005618/0.3487, allocations: 362.2 kB / 437 MB, free: 492 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002894/0.349, allocations: 142.5 kB / 437.1 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.3491, allocations: 59.42 kB / 437.2 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.883e-05/0.3491, allocations: 0 / 437.2 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002094/0.3493, allocations: 87.31 kB / 437.3 MB, free: 140 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.412e-06/0.3493, allocations: 0 / 437.3 MB, free: 140 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004594/0.3498, allocations: 173.3 kB / 437.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.3499, allocations: 170.2 kB / 437.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004204/0.3504, allocations: 344.2 kB / 437.9 MB, free: 15.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.3504, allocations: 30.08 kB / 438 MB, free: 15.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.3505, allocations: 136.3 kB / 438.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.433e-05/0.3505, allocations: 19.89 kB / 438.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.886e-05/0.3506, allocations: 33.67 kB / 438.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002041/0.3508, allocations: 334.8 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.901e-05/0.3509, allocations: 31.98 kB / 438.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000178/0.3511, allocations: 151 kB / 438.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.3513, allocations: 110 kB / 438.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3513, allocations: 0 / 438.8 MB, free: 14.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002683/0.3515, allocations: 141.3 kB / 438.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.3516, allocations: 4 kB / 438.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.3516, allocations: 3.938 kB / 438.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.3516, allocations: 7.984 kB / 438.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.3517, allocations: 20.19 kB / 438.9 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.348e-06/0.3517, allocations: 7.984 kB / 438.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.387e-05/0.3518, allocations: 15.92 kB / 438.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.3518, allocations: 7.938 kB / 439 MB, free: 14.28 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.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 (13): * Single equations (assignments): 13 * 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.0001665/0.352, allocations: 158.3 kB / 439.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.3521, allocations: 77.44 kB / 439.2 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002938/0.3524, allocations: 139.4 kB / 439.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.3524, allocations: 96 / 439.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/0.3524, allocations: 8.312 kB / 439.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.3524, allocations: 0 / 439.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002307/0.3526, allocations: 208.6 kB / 439.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3526, allocations: 4 kB / 439.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.025e-05/0.3527, allocations: 16 kB / 439.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3527, allocations: 0 / 439.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.3527, allocations: 11.98 kB / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.289e-05/0.3527, allocations: 0 / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3527, allocations: 0 / 439.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003533/0.3531, allocations: 199.2 kB / 439.8 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001118/0.3532, allocations: 51.77 kB / 439.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.537e-05/0.3532, allocations: 4 kB / 439.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.039e-05/0.3533, allocations: 4 kB / 439.8 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.685e-05/0.3534, allocations: 11.98 kB / 439.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.103e-05/0.3534, allocations: 4 kB / 439.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003014/0.3537, allocations: 259 kB / 440.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3537, allocations: 0 / 440.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002967/0.354, allocations: 43.86 kB / 440.1 MB, free: 13.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,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 (12): * Single equations (assignments): 10 * 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.002451/0.3565, allocations: 1.058 MB / 441.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003107/0.3568, allocations: 87.83 kB / 441.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3568, allocations: 7.875 kB / 441.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.813e-05/0.3569, allocations: 27.98 kB / 441.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000478/0.3573, allocations: 79.8 kB / 441.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002903/0.3602, allocations: 2.339 MB / 443.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.3604, allocations: 140.2 kB / 443.9 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.907e-05/0.3605, allocations: 29.78 kB / 443.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.3606, allocations: 67.41 kB / 444 MB, free: 9.16 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3606, allocations: 0 / 444 MB, free: 9.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03538/0.396, allocations: 6.45 MB / 450.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.38, allocations: 19.27 kB / 450.4 MB, free: 2.742 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --stepSize=1.79104e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.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.948291467968374]