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.001276/0.001276, allocations: 115.6 kB / 20.43 MB, free: 1.449 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.001465/0.001465, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.001999/0.001999, allocations: 47.92 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2832/0.2852, allocations: 53.36 MB / 431.1 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003536/0.2888, allocations: 1.944 MB / 433.1 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002333/0.2911, allocations: 1.325 MB / 434.4 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.2912, allocations: 3.938 kB / 434.4 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003001/0.2915, allocations: 75.64 kB / 434.5 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003578/0.2919, allocations: 131.4 kB / 434.6 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006879/0.2926, allocations: 235.3 kB / 434.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002927/0.2928, allocations: 191.4 kB / 435 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.293, allocations: 25.73 kB / 435.1 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001484/0.2931, allocations: 83.62 kB / 435.1 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000143/0.2933, allocations: 87.55 kB / 435.2 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.769e-05/0.2933, allocations: 12 kB / 435.2 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001883/0.2935, allocations: 79.88 kB / 435.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.968e-05/0.2936, allocations: 47.84 kB / 435.4 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.2937, allocations: 87.39 kB / 435.4 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003857/0.2941, allocations: 255.5 kB / 435.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.2941, allocations: 4 kB / 435.7 MB, free: 2.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2941, allocations: 0 / 435.7 MB, free: 2.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.62e-06/0.2941, allocations: 0 / 435.7 MB, free: 2.449 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.0007801/0.2949, allocations: 478.6 kB / 436.2 MB, free: 1.945 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.2949, allocations: 8.031 kB / 436.2 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.125e-05/0.2949, allocations: 42.69 kB / 436.2 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.471e-05/0.295, allocations: 28.75 kB / 436.2 MB, free: 1.859 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004869/0.2955, allocations: 245.4 kB / 436.5 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.532e-05/0.2955, allocations: 4.375 kB / 436.5 MB, free: 1.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.595e-05/0.2955, allocations: 15.92 kB / 436.5 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000397/0.2959, allocations: 172.4 kB / 436.7 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.2959, allocations: 4 kB / 436.7 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.296, allocations: 0 / 436.7 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.059e-06/0.296, allocations: 0 / 436.7 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.2961, allocations: 43.91 kB / 436.7 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000686/0.2968, allocations: 445.6 kB / 437.1 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/0.2971, allocations: 138.5 kB / 437.3 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.2972, allocations: 63.36 kB / 437.3 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.2972, allocations: 8.047 kB / 437.4 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000212/0.2974, allocations: 101 kB / 437.5 MB, free: 480 kB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.613e-06/0.2974, allocations: 0 / 437.5 MB, free: 480 kB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004381/0.2979, allocations: 165.4 kB / 437.6 MB, free: 308 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.298, allocations: 191.9 kB / 437.8 MB, free: 72 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003907/0.2984, allocations: 348.1 kB / 438.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.2984, allocations: 26.08 kB / 438.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00014/0.2985, allocations: 140.3 kB / 438.3 MB, free: 15.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.595e-05/0.2986, allocations: 15.89 kB / 438.3 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.399e-05/0.2986, allocations: 33.72 kB / 438.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.2988, allocations: 330.8 kB / 438.7 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.472e-05/0.2989, allocations: 23.98 kB / 438.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001438/0.299, allocations: 111.1 kB / 438.8 MB, free: 15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/0.2992, allocations: 89.08 kB / 438.9 MB, free: 14.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2992, allocations: 4 kB / 438.9 MB, free: 14.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002591/0.2994, allocations: 141.6 kB / 439 MB, free: 14.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2995, allocations: 8 kB / 439 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2995, allocations: 4 kB / 439 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.2995, allocations: 4 kB / 439.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001277/0.2996, allocations: 27.98 kB / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.2996, allocations: 0 / 439.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.192e-05/0.2997, allocations: 15.98 kB / 439.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.2997, allocations: 12 kB / 439.1 MB, free: 14.68 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.0001467/0.2999, allocations: 157.8 kB / 439.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.284e-05/0.2999, allocations: 65.56 kB / 439.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002737/0.3002, allocations: 123.3 kB / 439.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.3002, allocations: 4 kB / 439.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3002, allocations: 0 / 439.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.3002, allocations: 8 kB / 439.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002345/0.3005, allocations: 220.6 kB / 439.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.3005, allocations: 0 / 439.7 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.467e-05/0.3005, allocations: 15.98 kB / 439.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.3005, allocations: 4 kB / 439.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.3006, allocations: 0 / 439.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.3006, allocations: 7.938 kB / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3006, allocations: 0 / 439.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003075/0.3009, allocations: 187.4 kB / 439.9 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.552e-05/0.301, allocations: 47.77 kB / 439.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.246e-05/0.301, allocations: 0 / 439.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.122e-05/0.3011, allocations: 8 kB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.979e-05/0.3011, allocations: 11.92 kB / 439.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.3012, allocations: 11.98 kB / 440 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002685/0.3014, allocations: 255 kB / 440.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3014, allocations: 0 / 440.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002843/0.3017, allocations: 35.98 kB / 440.2 MB, free: 13.45 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 (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.002063/0.3038, allocations: 1.036 MB / 441.3 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002649/0.304, allocations: 75.91 kB / 441.4 MB, free: 12.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.304, allocations: 4 kB / 441.4 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.797e-05/0.3041, allocations: 39.84 kB / 441.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004563/0.3046, allocations: 81.69 kB / 441.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002801/0.3074, allocations: 2.292 MB / 443.8 MB, free: 9.918 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.3078, allocations: 0.7515 MB / 444.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001126/0.3079, allocations: 25.62 kB / 444.5 MB, free: 9.117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.308, allocations: 63.41 kB / 444.6 MB, free: 9.055 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.308, allocations: 0 / 444.6 MB, free: 9.055 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03204/0.3401, allocations: 5.693 MB / 450.3 MB, free: 3.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.61, allocations: 10.69 kB / 450.3 MB, free: 3.434 MB / 350.1 MB " [Timeout remaining time 648] (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: 14.118810534942895]