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.001416/0.001416, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 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.001576/0.001576, allocations: 206.3 kB / 23.73 MB, free: 4.523 MB / 14.72 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 1.398/1.398, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001532/0.001532, allocations: 55.91 kB / 377.7 MB, free: 3.059 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.2692, allocations: 53.36 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003675/0.2728, allocations: 1.913 MB / 433 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002356/0.2752, allocations: 1.22 MB / 434.2 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000121/0.2753, allocations: 3.938 kB / 434.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003124/0.2756, allocations: 75.66 kB / 434.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003782/0.276, allocations: 139.4 kB / 434.4 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006439/0.2766, allocations: 223.3 kB / 434.6 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002796/0.2769, allocations: 191.4 kB / 434.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001096/0.277, allocations: 25.75 kB / 434.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001309/0.2772, allocations: 87.62 kB / 434.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.2773, allocations: 83.66 kB / 435 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.367e-05/0.2773, allocations: 15.94 kB / 435 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001728/0.2775, allocations: 71.94 kB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.813e-05/0.2776, allocations: 55.78 kB / 435.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.651e-05/0.2777, allocations: 59.59 kB / 435.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003819/0.2781, allocations: 251.3 kB / 435.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.2781, allocations: 3.938 kB / 435.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2781, allocations: 0 / 435.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.002e-06/0.2781, allocations: 0 / 435.5 MB, free: 2.25 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.0008054/0.2789, allocations: 482.6 kB / 435.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.2789, allocations: 12.03 kB / 435.9 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.619e-05/0.279, allocations: 34.75 kB / 436 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.924e-05/0.279, allocations: 28.75 kB / 436 MB, free: 1.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004359/0.2795, allocations: 245.3 kB / 436.2 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.2795, allocations: 12.31 kB / 436.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.876e-05/0.2795, allocations: 7.938 kB / 436.3 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003887/0.2799, allocations: 199.9 kB / 436.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.2799, allocations: 7.938 kB / 436.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.2799, allocations: 0 / 436.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.2799, allocations: 0 / 436.5 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001309/0.2801, allocations: 47.91 kB / 436.5 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006135/0.2807, allocations: 429.7 kB / 436.9 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002939/0.281, allocations: 150.5 kB / 437.1 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001053/0.2811, allocations: 55.41 kB / 437.1 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.2811, allocations: 4 kB / 437.1 MB, free: 376 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002058/0.2813, allocations: 105 kB / 437.2 MB, free: 252 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.292e-06/0.2813, allocations: 0 / 437.2 MB, free: 252 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004297/0.2817, allocations: 173.8 kB / 437.4 MB, free: 72 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.2819, allocations: 166.2 kB / 437.6 MB, free: 15.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000383/0.2822, allocations: 344.2 kB / 437.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.2823, allocations: 29.7 kB / 437.9 MB, free: 15.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.2824, allocations: 136.3 kB / 438.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.641e-05/0.2824, allocations: 15.91 kB / 438.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.027e-05/0.2825, allocations: 33.7 kB / 438.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.2826, allocations: 334.8 kB / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.85e-05/0.2827, allocations: 27.98 kB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.2829, allocations: 146.2 kB / 438.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/0.2831, allocations: 105 kB / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.2831, allocations: 0 / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002626/0.2833, allocations: 145.6 kB / 438.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.2833, allocations: 4 kB / 438.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.2833, allocations: 4 kB / 438.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.2834, allocations: 4.156 kB / 438.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.2835, allocations: 19.98 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.521e-06/0.2835, allocations: 4 kB / 438.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.831e-05/0.2836, allocations: 23.81 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.218e-05/0.2836, allocations: 4 kB / 438.9 MB, free: 14.42 MB / 350.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.0001417/0.2837, allocations: 153.8 kB / 439.1 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.2838, allocations: 73.48 kB / 439.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002759/0.2841, allocations: 123.4 kB / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.2841, allocations: 8.062 kB / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.2841, allocations: 0 / 439.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.2841, allocations: 7.938 kB / 439.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002453/0.2844, allocations: 204.8 kB / 439.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2844, allocations: 0 / 439.5 MB, free: 13.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.228e-05/0.2845, allocations: 19.92 kB / 439.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.2845, allocations: 7.938 kB / 439.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.2845, allocations: 0 / 439.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.2845, allocations: 4 kB / 439.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2845, allocations: 0 / 439.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000317/0.2848, allocations: 203.3 kB / 439.7 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001023/0.2849, allocations: 39.78 kB / 439.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.2849, allocations: 4 kB / 439.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.979e-05/0.285, allocations: 15.92 kB / 439.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.824e-05/0.2851, allocations: 11.92 kB / 439.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.2851, allocations: 4 kB / 439.8 MB, free: 13.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002588/0.2853, allocations: 255 kB / 440 MB, free: 13.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2853, allocations: 0 / 440 MB, free: 13.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002671/0.2856, allocations: 32 kB / 440.1 MB, free: 13.19 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,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.002115/0.2877, allocations: 1.078 MB / 441.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002429/0.288, allocations: 83.89 kB / 441.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.288, allocations: 0 / 441.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001005/0.2881, allocations: 39.91 kB / 441.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004616/0.2885, allocations: 71.97 kB / 441.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002817/0.2913, allocations: 2.31 MB / 443.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001496/0.2915, allocations: 136.2 kB / 443.8 MB, free: 9.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.914e-05/0.2916, allocations: 33.77 kB / 443.8 MB, free: 9.445 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.2917, allocations: 63.41 kB / 443.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2917, allocations: 0 / 443.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03463/0.3263, allocations: 6.287 MB / 450.2 MB, free: 3.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/10.81, allocations: 14.91 kB / 450.2 MB, free: 3.168 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 13.217435672006104]