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.0008824/0.0008824, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009713/0.0009713, allocations: 156.9 kB / 23.94 MB, free: 0.6172 MB / 18.57 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 0.9007/0.9007, allocations: 177 MB / 204.1 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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 2.615e-06/2.615e-06, allocations: 3.984 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.058e-05/2.319e-05, allocations: 2.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.0025/0.002523, allocations: 1.905 MB / 326.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.003972, allocations: 1.246 MB / 327.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.004111, allocations: 7.938 kB / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003379/0.004449, allocations: 67.59 kB / 327.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003095/0.004759, allocations: 143.2 kB / 327.9 MB, free: 12.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000489/0.005248, allocations: 242.2 kB / 328.1 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00021/0.005458, allocations: 187.5 kB / 328.3 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.005567, allocations: 21.8 kB / 328.3 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001197/0.005687, allocations: 111.7 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.912e-05/0.005786, allocations: 75.78 kB / 328.5 MB, free: 11.87 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.005812, allocations: 12 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001396/0.005951, allocations: 75.88 kB / 328.6 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.372e-05/0.006025, allocations: 47.78 kB / 328.6 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.778e-05/0.006083, allocations: 51.78 kB / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002823/0.006365, allocations: 255.1 kB / 328.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.006368, allocations: 0 / 328.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.006369, allocations: 0 / 328.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.839e-06/0.006374, allocations: 0 / 328.9 MB, free: 11.44 MB / 298.7 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.0005698/0.006944, allocations: 490.4 kB / 329.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.006984, allocations: 11.98 kB / 329.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.997e-05/0.007014, allocations: 38.75 kB / 329.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.652e-05/0.007061, allocations: 28.8 kB / 329.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003251/0.007386, allocations: 241.8 kB / 329.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.007401, allocations: 8.375 kB / 329.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.224e-05/0.007413, allocations: 4.375 kB / 329.7 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002916/0.007705, allocations: 206.3 kB / 329.9 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.007715, allocations: 12.11 kB / 329.9 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.007727, allocations: 8.125 kB / 330 MB, free: 10.31 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.927e-06/0.007735, allocations: 3.938 kB / 330 MB, free: 10.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.352e-05/0.007819, allocations: 43.97 kB / 330 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006491/0.008468, allocations: 350.4 kB / 330.3 MB, free: 9.867 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.008641, allocations: 138.5 kB / 330.5 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.132e-05/0.008702, allocations: 67.34 kB / 330.5 MB, free: 9.617 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.008728, allocations: 4 kB / 330.5 MB, free: 9.613 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001324/0.008861, allocations: 83.38 kB / 330.6 MB, free: 9.52 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.182e-06/0.008862, allocations: 0 / 330.6 MB, free: 9.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002793/0.009141, allocations: 177.3 kB / 330.8 MB, free: 9.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.312e-05/0.009214, allocations: 170.1 kB / 331 MB, free: 9.137 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002376/0.009452, allocations: 344.2 kB / 331.3 MB, free: 8.793 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.009467, allocations: 30.08 kB / 331.3 MB, free: 8.758 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.585e-05/0.009533, allocations: 136.4 kB / 331.5 MB, free: 8.617 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.148e-05/0.009554, allocations: 19.84 kB / 331.5 MB, free: 8.598 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.924e-05/0.009593, allocations: 29.66 kB / 331.5 MB, free: 8.562 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.418e-05/0.009678, allocations: 330.8 kB / 331.8 MB, free: 8.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.331e-05/0.009721, allocations: 19.98 kB / 331.9 MB, free: 8.211 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-05/0.009791, allocations: 118.8 kB / 332 MB, free: 8.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.875e-05/0.00987, allocations: 61.64 kB / 332 MB, free: 8.004 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.009872, allocations: 0 / 332 MB, free: 8.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001232/0.009995, allocations: 113.5 kB / 332.1 MB, free: 7.887 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.01001, allocations: 11.28 kB / 332.2 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.01002, allocations: 0 / 332.2 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.01003, allocations: 0 / 332.2 MB, free: 7.879 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.535e-05/0.01011, allocations: 19.92 kB / 332.2 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.01011, allocations: 0 / 332.2 MB, free: 7.859 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.121e-05/0.01015, allocations: 8 kB / 332.2 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.01016, allocations: 0 / 332.2 MB, free: 7.852 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.543e-05/0.01025, allocations: 153.8 kB / 332.3 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.461e-05/0.01032, allocations: 85.52 kB / 332.4 MB, free: 7.602 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001695/0.01049, allocations: 127.4 kB / 332.5 MB, free: 7.469 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.01049, allocations: 4 kB / 332.5 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.0105, allocations: 320 / 332.5 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.0105, allocations: 0 / 332.5 MB, free: 7.465 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.01065, allocations: 216.6 kB / 332.8 MB, free: 7.211 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.01065, allocations: 4 kB / 332.8 MB, free: 7.207 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.73e-05/0.0107, allocations: 19.92 kB / 332.8 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.0107, allocations: 0 / 332.8 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-06/0.01071, allocations: 4 kB / 332.8 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.01071, allocations: 4.062 kB / 332.8 MB, free: 7.18 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.01071, allocations: 4 kB / 332.8 MB, free: 7.176 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001665/0.01088, allocations: 199.3 kB / 333 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.47e-05/0.01093, allocations: 35.78 kB / 333 MB, free: 6.918 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.01096, allocations: 8 kB / 333 MB, free: 6.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.38e-05/0.01099, allocations: 7.984 kB / 333 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.118e-05/0.01103, allocations: 15.92 kB / 333.1 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.476e-05/0.01105, allocations: 4 kB / 333.1 MB, free: 6.883 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001588/0.0112, allocations: 255 kB / 333.3 MB, free: 6.633 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0112, allocations: 0 / 333.3 MB, free: 6.633 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001814/0.01139, allocations: 39.95 kB / 333.3 MB, free: 6.594 MB / 298.7 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.0009715/0.01236, allocations: 1.065 MB / 334.4 MB, free: 5.641 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001549/0.01251, allocations: 71.89 kB / 334.5 MB, free: 5.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.01251, allocations: 0 / 334.5 MB, free: 5.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.881e-05/0.01256, allocations: 31.98 kB / 334.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002915/0.01285, allocations: 81.5 kB / 334.6 MB, free: 5.461 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.01448, allocations: 2.226 MB / 336.8 MB, free: 3.121 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.261e-05/0.01457, allocations: 140.2 kB / 337 MB, free: 2.961 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.461e-05/0.01464, allocations: 29.97 kB / 337 MB, free: 2.934 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.826e-05/0.01472, allocations: 64.47 kB / 337 MB, free: 2.867 MB / 298.7 MB Notification: Performance of SimCode: time 7.41e-07/0.01472, allocations: 0 / 337 MB, free: 2.867 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01953/0.03425, allocations: 6.538 MB / 343.6 MB, free: 12.38 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.716/6.75, allocations: 0 / 343.6 MB, free: 12.38 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins/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: 8.480678322724998]