Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001865/0.001865, allocations: 182.9 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 47.92 kB / 370.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2776, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.004106/0.2817, allocations: 1.935 MB / 424.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002242/0.284, allocations: 1.181 MB / 425.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.2841, allocations: 3.938 kB / 425.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003345/0.2844, allocations: 63.66 kB / 425.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003014/0.2847, allocations: 99.53 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008181/0.2855, allocations: 262.1 kB / 426.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000303/0.2858, allocations: 179.5 kB / 426.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.286, allocations: 25.73 kB / 426.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001416/0.2861, allocations: 83.62 kB / 426.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.2863, allocations: 87.66 kB / 426.5 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.763e-05/0.2863, allocations: 8 kB / 426.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001996/0.2865, allocations: 75.94 kB / 426.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.97e-05/0.2866, allocations: 55.72 kB / 426.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.762e-05/0.2867, allocations: 79.47 kB / 426.7 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000417/0.2871, allocations: 239.4 kB / 427 MB, free: 10.22 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2871, allocations: 4 kB / 427 MB, free: 10.22 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.2871, allocations: 0 / 427 MB, free: 10.22 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.2871, allocations: 0 / 427 MB, free: 10.22 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.0008791/0.288, allocations: 482.4 kB / 427.4 MB, free: 9.711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.2881, allocations: 12.03 kB / 427.5 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.086e-05/0.2881, allocations: 38.75 kB / 427.5 MB, free: 9.652 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.178e-05/0.2882, allocations: 28.75 kB / 427.5 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004834/0.2887, allocations: 225.5 kB / 427.7 MB, free: 9.383 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.2887, allocations: 12.36 kB / 427.8 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.437e-05/0.2887, allocations: 11.88 kB / 427.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000421/0.2891, allocations: 176.4 kB / 427.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.2892, allocations: 0 / 427.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.255e-05/0.2892, allocations: 0 / 427.9 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.116e-06/0.2892, allocations: 4 kB / 427.9 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001291/0.2893, allocations: 43.91 kB / 428 MB, free: 9.109 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006921/0.29, allocations: 445.6 kB / 428.4 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002961/0.2903, allocations: 134.5 kB / 428.6 MB, free: 8.453 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.2904, allocations: 55.42 kB / 428.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.2904, allocations: 4.062 kB / 428.6 MB, free: 8.383 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002291/0.2907, allocations: 109 kB / 428.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.192e-06/0.2907, allocations: 0 / 428.7 MB, free: 8.258 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004488/0.2911, allocations: 165.4 kB / 428.9 MB, free: 8.09 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/0.2913, allocations: 196.3 kB / 429.1 MB, free: 7.855 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004046/0.2917, allocations: 333.8 kB / 429.4 MB, free: 7.523 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.2917, allocations: 29.7 kB / 429.4 MB, free: 7.488 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001115/0.2918, allocations: 124.4 kB / 429.5 MB, free: 7.359 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.176e-05/0.2918, allocations: 23.83 kB / 429.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.368e-05/0.2919, allocations: 41.66 kB / 429.6 MB, free: 7.289 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.2921, allocations: 330.8 kB / 429.9 MB, free: 6.957 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.287e-05/0.2922, allocations: 27.92 kB / 430 MB, free: 6.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.2923, allocations: 103.6 kB / 430.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001779/0.2925, allocations: 93.08 kB / 430.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.2925, allocations: 0 / 430.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002753/0.2928, allocations: 145.3 kB / 430.3 MB, free: 6.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.2928, allocations: 4 kB / 430.3 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2928, allocations: 0 / 430.3 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.022e-05/0.2928, allocations: 4.156 kB / 430.3 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.2929, allocations: 31.92 kB / 430.3 MB, free: 6.504 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.293, allocations: 4 kB / 430.3 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.007e-05/0.293, allocations: 7.938 kB / 430.3 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.293, allocations: 4 kB / 430.4 MB, free: 6.488 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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,shiftSample1.y,hold1.y,hold1.u,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.0001671/0.2932, allocations: 153.8 kB / 430.5 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.973e-05/0.2933, allocations: 69.5 kB / 430.6 MB, free: 6.254 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002998/0.2936, allocations: 127.7 kB / 430.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.2936, allocations: 4 kB / 430.7 MB, free: 6.117 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.2936, allocations: 4.062 kB / 430.7 MB, free: 6.113 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.408e-06/0.2936, allocations: 7.938 kB / 430.7 MB, free: 6.105 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002714/0.2939, allocations: 216.5 kB / 430.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2939, allocations: 0 / 430.9 MB, free: 5.852 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.588e-05/0.294, allocations: 19.98 kB / 430.9 MB, free: 5.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.294, allocations: 4 kB / 430.9 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.123e-05/0.294, allocations: 0 / 430.9 MB, free: 5.828 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.294, allocations: 4 kB / 430.9 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.294, allocations: 0 / 430.9 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003215/0.2943, allocations: 191.3 kB / 431.1 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.2944, allocations: 43.83 kB / 431.2 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.17e-05/0.2945, allocations: 0 / 431.2 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.93e-05/0.2945, allocations: 4 kB / 431.2 MB, free: 5.562 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.615e-05/0.2946, allocations: 19.92 kB / 431.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.2946, allocations: 4 kB / 431.2 MB, free: 5.539 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002834/0.2949, allocations: 245.2 kB / 431.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2949, allocations: 0 / 431.4 MB, free: 5.297 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002814/0.2952, allocations: 35.94 kB / 431.5 MB, free: 5.262 MB / 334.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,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 (11): * Single equations (assignments): 9 * 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.002171/0.2973, allocations: 1.03 MB / 432.5 MB, free: 4.359 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002983/0.2976, allocations: 83.83 kB / 432.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.2976, allocations: 320 / 432.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.749e-05/0.2977, allocations: 35.98 kB / 432.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004576/0.2982, allocations: 85.61 kB / 432.7 MB, free: 4.164 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002792/0.301, allocations: 2.268 MB / 435 MB, free: 1.766 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/0.3014, allocations: 0.7398 MB / 435.7 MB, free: 1 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.333e-05/0.3015, allocations: 29.47 kB / 435.7 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.3016, allocations: 59.41 kB / 435.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3016, allocations: 0 / 435.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03488/0.3365, allocations: 5.607 MB / 441.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.31, allocations: 11.38 kB / 441.4 MB, free: 11.38 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold_fmu --startTime=0 --stopTime=0.2 --stepSize=3.98963e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.705715015996248]