Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.00185/0.00185, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.002521/0.002521, allocations: 209.9 kB / 24.49 MB, free: 4.148 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.384/1.384, allocations: 230.6 MB / 258.3 MB, free: 7.988 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: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 43.92 kB / 379 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2551, allocations: 53.37 MB / 432.4 MB, free: 6.938 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.002314/0.2574, allocations: 0.8635 MB / 433.3 MB, free: 6.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000352/0.2577, allocations: 119.6 kB / 433.4 MB, free: 5.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.395e-05/0.2578, allocations: 3.938 kB / 433.4 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.867e-05/0.2579, allocations: 7.922 kB / 433.4 MB, free: 5.953 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.258, allocations: 11.94 kB / 433.4 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002057/0.2582, allocations: 39.89 kB / 433.4 MB, free: 5.902 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001003/0.2583, allocations: 39.91 kB / 433.5 MB, free: 5.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.2585, allocations: 12 kB / 433.5 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.327e-05/0.2585, allocations: 27.84 kB / 433.5 MB, free: 5.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.253e-05/0.2586, allocations: 23.86 kB / 433.5 MB, free: 5.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.526e-05/0.2586, allocations: 4 kB / 433.5 MB, free: 5.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.778e-06/0.2586, allocations: 4 kB / 433.5 MB, free: 5.793 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.328e-05/0.2586, allocations: 19.92 kB / 433.6 MB, free: 5.773 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.05e-05/0.2587, allocations: 27.75 kB / 433.6 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.2588, allocations: 64.94 kB / 433.7 MB, free: 5.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.335e-06/0.2588, allocations: 0 / 433.7 MB, free: 5.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.2588, allocations: 0 / 433.7 MB, free: 5.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.378e-06/0.2588, allocations: 0 / 433.7 MB, free: 5.688 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004282/0.2592, allocations: 298 kB / 433.9 MB, free: 5.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.2593, allocations: 8.031 kB / 434 MB, free: 5.355 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.988e-05/0.2593, allocations: 20.84 kB / 434 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002151/0.2595, allocations: 134.4 kB / 434.1 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.2595, allocations: 8.312 kB / 434.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.065e-05/0.2595, allocations: 4.375 kB / 434.1 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002895/0.2598, allocations: 151.7 kB / 434.3 MB, free: 5.008 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.2598, allocations: 4.188 kB / 434.3 MB, free: 5.004 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.2599, allocations: 3.938 kB / 434.3 MB, free: 5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.2599, allocations: 0 / 434.3 MB, free: 5 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.063e-05/0.2599, allocations: 31.91 kB / 434.3 MB, free: 4.969 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001539/0.2601, allocations: 148.7 kB / 434.4 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001506/0.2602, allocations: 66.7 kB / 434.5 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.324e-05/0.2603, allocations: 40.89 kB / 434.6 MB, free: 4.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.836e-06/0.2603, allocations: 4 kB / 434.6 MB, free: 4.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.2603, allocations: 38.5 kB / 434.6 MB, free: 4.613 MB / 334.1 MB Notification: Performance of pre-optimization done (n=8): time 9.12e-07/0.2603, allocations: 0 / 434.6 MB, free: 4.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002051/0.2605, allocations: 97.56 kB / 434.7 MB, free: 4.512 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/0.2606, allocations: 59.41 kB / 434.7 MB, free: 4.441 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.2607, allocations: 140.3 kB / 434.9 MB, free: 4.297 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.2608, allocations: 25.7 kB / 434.9 MB, free: 4.266 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.847e-05/0.2608, allocations: 92.14 kB / 435 MB, free: 4.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.81e-05/0.2608, allocations: 11.94 kB / 435 MB, free: 4.16 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.346e-05/0.2609, allocations: 21.72 kB / 435 MB, free: 4.133 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.261, allocations: 318.8 kB / 435.3 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.315e-05/0.261, allocations: 15.94 kB / 435.4 MB, free: 3.797 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.095e-05/0.2611, allocations: 62.8 kB / 435.4 MB, free: 3.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001086/0.2612, allocations: 74.75 kB / 435.5 MB, free: 3.613 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2612, allocations: 0 / 435.5 MB, free: 3.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001452/0.2614, allocations: 93.5 kB / 435.6 MB, free: 3.516 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.2614, allocations: 7.938 kB / 435.6 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2614, allocations: 4 kB / 435.6 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.2614, allocations: 256 / 435.6 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.91e-05/0.2615, allocations: 27.92 kB / 435.6 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.2615, allocations: 0 / 435.6 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.339e-05/0.2615, allocations: 4 kB / 435.6 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.2615, allocations: 4 kB / 435.6 MB, free: 3.469 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * 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 0.0001027/0.2616, allocations: 125.8 kB / 435.8 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/0.2617, allocations: 93.64 kB / 435.8 MB, free: 3.238 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.575e-05/0.2618, allocations: 12.72 kB / 435.9 MB, free: 3.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.2618, allocations: 4.188 kB / 435.9 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.2618, allocations: 4 kB / 435.9 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.2618, allocations: 7.922 kB / 435.9 MB, free: 3.207 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001411/0.2619, allocations: 144.7 kB / 436 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.2619, allocations: 0 / 436 MB, free: 3.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.564e-05/0.262, allocations: 15.98 kB / 436 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.262, allocations: 3.938 kB / 436 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.254e-06/0.262, allocations: 4 kB / 436 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.262, allocations: 400 / 436 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.262, allocations: 0 / 436 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000141/0.2621, allocations: 113 kB / 436.2 MB, free: 2.871 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.256e-05/0.2622, allocations: 19.94 kB / 436.2 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.2622, allocations: 7.938 kB / 436.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.551e-05/0.2622, allocations: 7.984 kB / 436.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.565e-06/0.2622, allocations: 0 / 436.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.2622, allocations: 4 kB / 436.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.537e-05/0.2623, allocations: 103.3 kB / 436.3 MB, free: 2.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2623, allocations: 3.938 kB / 436.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001971/0.2625, allocations: 8 kB / 436.3 MB, free: 2.719 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 0.0001119/0.2626, allocations: 107.2 kB / 436.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001451/0.2628, allocations: 47.86 kB / 436.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2628, allocations: 0 / 436.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.32e-07/0.2628, allocations: 0 / 436.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002872/0.2631, allocations: 44 kB / 436.5 MB, free: 2.516 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003347/0.2634, allocations: 215.5 kB / 436.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.2638, allocations: 0.6963 MB / 437.4 MB, free: 1.551 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.296e-05/0.2639, allocations: 11.44 kB / 437.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2639, allocations: 0 / 437.4 MB, free: 1.539 MB / 334.1 MB Notification: Performance of Templates: time 0.002465/0.2663, allocations: 0.8869 MB / 438.3 MB, free: 0.6602 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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: 6.652137216879055]