Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.0008511/0.0008511, allocations: 83.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008203/0.0008203, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 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 0.8646/0.8646, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.944e-05/2.102e-05, allocations: 6.219 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.002542/0.002563, allocations: 1.894 MB / 326.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001426/0.00399, allocations: 1.243 MB / 327.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.004097, allocations: 7.938 kB / 327.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002913/0.004389, allocations: 67.55 kB / 327.8 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003708/0.004759, allocations: 143.3 kB / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004454/0.005205, allocations: 235.1 kB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001889/0.005394, allocations: 187.5 kB / 328.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.042e-05/0.005484, allocations: 21.73 kB / 328.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.005601, allocations: 107.7 kB / 328.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.088e-05/0.005692, allocations: 71.78 kB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.928e-05/0.005711, allocations: 12 kB / 328.5 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001192/0.005831, allocations: 67.89 kB / 328.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.585e-05/0.005897, allocations: 59.7 kB / 328.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.773e-05/0.005944, allocations: 43.84 kB / 328.7 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002533/0.006198, allocations: 259.2 kB / 329 MB, free: 11.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.006201, allocations: 4 kB / 329 MB, free: 11.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.71e-07/0.006202, allocations: 0 / 329 MB, free: 11.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.006206, allocations: 3.938 kB / 329 MB, free: 11.52 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.0005133/0.006719, allocations: 477.7 kB / 329.4 MB, free: 11.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.006755, allocations: 8.031 kB / 329.4 MB, free: 11.01 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.9e-05/0.006784, allocations: 42.73 kB / 329.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.54e-05/0.006829, allocations: 28.75 kB / 329.5 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003973/0.007226, allocations: 236.7 kB / 329.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.516e-05/0.007242, allocations: 8.375 kB / 329.7 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.007253, allocations: 4.375 kB / 329.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002819/0.007535, allocations: 205.5 kB / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.007544, allocations: 0 / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.007557, allocations: 4 kB / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.007562, allocations: 0 / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8e-05/0.007642, allocations: 43.91 kB / 330 MB, free: 10.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004186/0.00806, allocations: 429.7 kB / 330.4 MB, free: 9.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001709/0.008231, allocations: 146.5 kB / 330.6 MB, free: 9.73 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.898e-05/0.00829, allocations: 55.41 kB / 330.6 MB, free: 9.664 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.945e-05/0.00831, allocations: 4 kB / 330.6 MB, free: 9.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001506/0.00846, allocations: 105 kB / 330.7 MB, free: 9.539 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.543e-06/0.008462, allocations: 3.938 kB / 330.7 MB, free: 9.535 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.000299/0.008761, allocations: 173.4 kB / 330.9 MB, free: 9.359 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.038e-05/0.008831, allocations: 162.2 kB / 331.1 MB, free: 9.164 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002349/0.009066, allocations: 340.2 kB / 331.4 MB, free: 8.824 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.345e-05/0.00908, allocations: 29.7 kB / 331.4 MB, free: 8.789 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.919e-05/0.009149, allocations: 140.4 kB / 331.6 MB, free: 8.645 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.624e-05/0.009165, allocations: 11.91 kB / 331.6 MB, free: 8.633 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.772e-05/0.009203, allocations: 33.7 kB / 331.6 MB, free: 8.594 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.032e-05/0.009283, allocations: 331.1 kB / 331.9 MB, free: 8.262 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.036e-05/0.009323, allocations: 27.98 kB / 331.9 MB, free: 8.234 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-05/0.009393, allocations: 131.5 kB / 332.1 MB, free: 8.078 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.891e-05/0.009482, allocations: 66.56 kB / 332.1 MB, free: 8.004 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.512e-06/0.009484, allocations: 0 / 332.1 MB, free: 8.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001295/0.009613, allocations: 113.8 kB / 332.3 MB, free: 7.887 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.009624, allocations: 4 kB / 332.3 MB, free: 7.883 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.009629, allocations: 11.98 kB / 332.3 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/0.00964, allocations: 4.094 kB / 332.3 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.427e-05/0.009704, allocations: 15.94 kB / 332.3 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.009709, allocations: 0 / 332.3 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.093e-05/0.00975, allocations: 11.92 kB / 332.3 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.009759, allocations: 8 kB / 332.3 MB, free: 7.832 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 8.884e-05/0.009848, allocations: 149.8 kB / 332.5 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.772e-05/0.009906, allocations: 81.44 kB / 332.5 MB, free: 7.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001637/0.01007, allocations: 127.4 kB / 332.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.01007, allocations: 64 / 332.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.01008, allocations: 8 kB / 332.7 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.01008, allocations: 0 / 332.7 MB, free: 7.441 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001409/0.01022, allocations: 204.6 kB / 332.9 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.01022, allocations: 0 / 332.9 MB, free: 7.199 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.426e-05/0.01027, allocations: 23.92 kB / 332.9 MB, free: 7.176 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.01027, allocations: 0 / 332.9 MB, free: 7.176 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.01028, allocations: 8 kB / 332.9 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.01028, allocations: 0 / 332.9 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.01028, allocations: 0 / 332.9 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004046/0.01068, allocations: 195.3 kB / 333.1 MB, free: 6.949 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.618e-05/0.01074, allocations: 51.73 kB / 333.1 MB, free: 6.898 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.878e-05/0.01076, allocations: 4.172 kB / 333.1 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.455e-05/0.01079, allocations: 8 kB / 333.2 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.856e-05/0.01083, allocations: 11.92 kB / 333.2 MB, free: 6.875 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.274e-05/0.01084, allocations: 8 kB / 333.2 MB, free: 6.867 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001623/0.01101, allocations: 251 kB / 333.4 MB, free: 6.625 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01101, allocations: 4 kB / 333.4 MB, free: 6.621 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00018/0.01119, allocations: 28 kB / 333.4 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,hold1.y,hold1.u,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 (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.0009719/0.01216, allocations: 1.073 MB / 334.5 MB, free: 5.672 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001441/0.0123, allocations: 79.89 kB / 334.6 MB, free: 5.594 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.01231, allocations: 0 / 334.6 MB, free: 5.594 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.493e-05/0.01236, allocations: 39.86 kB / 334.6 MB, free: 5.555 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.01262, allocations: 65.27 kB / 334.7 MB, free: 5.492 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.01425, allocations: 2.251 MB / 337 MB, free: 3.129 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.999e-05/0.01434, allocations: 136.2 kB / 337.1 MB, free: 2.977 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.776e-05/0.0144, allocations: 29.45 kB / 337.1 MB, free: 2.949 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.238e-05/0.01447, allocations: 64.48 kB / 337.2 MB, free: 2.887 MB / 298.7 MB Notification: Performance of SimCode: time 3.01e-07/0.01447, allocations: 0 / 337.2 MB, free: 2.887 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01766/0.03213, allocations: 6.355 MB / 343.5 MB, free: 12.6 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.724/6.756, allocations: 13.89 kB / 343.5 MB, free: 12.59 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,shiftSample1.y,hold1.y Variables in the result:hold1.u,hold1.y,hold1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.u,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nHeaderLines,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.table[4,1],table.combiTimeTable.table[4,2],table.combiTimeTable.table[5,1],table.combiTimeTable.table[5,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.combiTimeTable.y[1],table.extrapolation,table.realToInteger.u,table.realToInteger.y,table.shiftTime,table.startTime,table.table[1,1],table.table[1,2],table.table[2,1],table.table[2,2],table.table[3,1],table.table[3,2],table.table[4,1],table.table[4,2],table.table[5,1],table.table[5,2],table.y,time [Calling sys.exit(0), Time elapsed: 8.391824645921588]