Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.001403/0.001403, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001707/0.001707, allocations: 165 kB / 24.56 MB, free: 12 kB / 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 1.044/1.044, allocations: 177.1 MB / 205 MB, free: 5.602 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: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.046e-05/2.213e-05, allocations: 2.312 kB / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.003513/0.003535, allocations: 1.978 MB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001789/0.005325, allocations: 1.196 MB / 276.1 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001124/0.005437, allocations: 3.938 kB / 276.2 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005392/0.005977, allocations: 163.4 kB / 276.3 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003189/0.006295, allocations: 155.3 kB / 276.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004023/0.006698, allocations: 175.3 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00023/0.006928, allocations: 199.4 kB / 276.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.007028, allocations: 25.78 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001188/0.007147, allocations: 103.7 kB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.892e-05/0.007246, allocations: 71.8 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.007267, allocations: 8 kB / 277 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001232/0.00739, allocations: 67.83 kB / 277.1 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.715e-05/0.007467, allocations: 47.78 kB / 277.1 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.837e-05/0.007525, allocations: 39.84 kB / 277.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002412/0.007766, allocations: 171.3 kB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.007769, allocations: 0 / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.00777, allocations: 0 / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.239e-06/0.007775, allocations: 0 / 277.4 MB, free: 13.12 MB / 266.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.0006627/0.008438, allocations: 0.5478 MB / 277.9 MB, free: 12.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.713e-05/0.008475, allocations: 12.03 kB / 277.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.08e-05/0.008536, allocations: 28.8 kB / 277.9 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002505/0.008786, allocations: 228.3 kB / 278.2 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.008804, allocations: 4.375 kB / 278.2 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.489e-05/0.008819, allocations: 8.375 kB / 278.2 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.009078, allocations: 160.2 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.009088, allocations: 7.938 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.0091, allocations: 3.984 kB / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.009108, allocations: 0 / 278.3 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.071e-05/0.009159, allocations: 27.92 kB / 278.4 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004559/0.009615, allocations: 481.9 kB / 278.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.00982, allocations: 140.4 kB / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.553e-05/0.009896, allocations: 54.73 kB / 279 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.009916, allocations: 7.938 kB / 279 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001161/0.01003, allocations: 100.4 kB / 279.1 MB, free: 11.1 MB / 266.7 MB Notification: Performance of pre-optimization done (n=11): time 1.993e-06/0.01003, allocations: 3.984 kB / 279.1 MB, free: 11.1 MB / 266.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002369/0.01027, allocations: 133.6 kB / 279.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.73e-05/0.01034, allocations: 140.5 kB / 279.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/0.01054, allocations: 292.3 kB / 279.7 MB, free: 10.49 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.01057, allocations: 34.08 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.32e-05/0.01064, allocations: 167.1 kB / 279.9 MB, free: 10.28 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.427e-05/0.01066, allocations: 23.95 kB / 279.9 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.863e-05/0.0107, allocations: 35.33 kB / 279.9 MB, free: 10.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.01082, allocations: 0.5039 MB / 280.5 MB, free: 9.695 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.329e-05/0.01084, allocations: 8 kB / 280.5 MB, free: 9.688 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.83e-05/0.01089, allocations: 76.44 kB / 280.5 MB, free: 9.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.646e-05/0.01095, allocations: 54.94 kB / 280.6 MB, free: 9.523 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.01095, allocations: 0 / 280.6 MB, free: 9.523 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001006/0.01105, allocations: 93.55 kB / 280.7 MB, free: 9.426 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.01106, allocations: 4 kB / 280.7 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.01107, allocations: 0 / 280.7 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.01108, allocations: 0 / 280.7 MB, free: 9.422 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.93e-05/0.01114, allocations: 12 kB / 280.7 MB, free: 9.41 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.01114, allocations: 0 / 280.7 MB, free: 9.41 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.902e-05/0.01118, allocations: 15.92 kB / 280.7 MB, free: 9.395 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.482e-06/0.01119, allocations: 4 kB / 280.7 MB, free: 9.391 MB / 266.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 7.573e-05/0.01126, allocations: 169.1 kB / 280.9 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.571e-05/0.01133, allocations: 77.55 kB / 281 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001281/0.01146, allocations: 91.45 kB / 281 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.01146, allocations: 0 / 281 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.01146, allocations: 0 / 281 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.01147, allocations: 7.984 kB / 281.1 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.0116, allocations: 184.5 kB / 281.2 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.0116, allocations: 4 kB / 281.2 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.875e-05/0.01162, allocations: 4 kB / 281.2 MB, free: 8.805 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.01163, allocations: 0 / 281.2 MB, free: 8.805 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.01164, allocations: 12.06 kB / 281.3 MB, free: 8.793 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.01164, allocations: 4.062 kB / 281.3 MB, free: 8.789 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01164, allocations: 4 kB / 281.3 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001445/0.01178, allocations: 183.2 kB / 281.4 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.628e-05/0.01183, allocations: 35.83 kB / 281.5 MB, free: 8.535 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.037e-05/0.01185, allocations: 4 kB / 281.5 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.343e-05/0.01188, allocations: 7.984 kB / 281.5 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.647e-05/0.01192, allocations: 7.938 kB / 281.5 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.01193, allocations: 7.984 kB / 281.5 MB, free: 8.508 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001086/0.01204, allocations: 205.1 kB / 281.7 MB, free: 8.309 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01204, allocations: 0 / 281.7 MB, free: 8.309 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001672/0.01221, allocations: 35.95 kB / 281.7 MB, free: 8.273 MB / 266.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.0008089/0.01302, allocations: 399.6 kB / 282.1 MB, free: 8.023 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001322/0.01315, allocations: 67.59 kB / 282.2 MB, free: 7.953 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.333e-06/0.01315, allocations: 0 / 282.2 MB, free: 7.953 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.041e-05/0.01319, allocations: 27.61 kB / 282.2 MB, free: 7.922 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.01347, allocations: 82.38 kB / 282.3 MB, free: 7.852 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003774/0.01384, allocations: 325.1 kB / 282.6 MB, free: 7.496 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.424e-05/0.01389, allocations: 83.92 kB / 282.7 MB, free: 7.395 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.728e-05/0.01394, allocations: 21.86 kB / 282.7 MB, free: 7.371 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.537e-05/0.01397, allocations: 20.48 kB / 282.7 MB, free: 7.348 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.01397, allocations: 0 / 282.7 MB, free: 7.348 MB / 266.7 MB Notification: Performance of Templates: time 0.004691/0.01866, allocations: 2.887 MB / 285.6 MB, free: 4.5 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.90857840096578]