Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.001077/0.001077, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 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.001098/0.001098, allocations: 148.9 kB / 24.81 MB, free: 9.27 MB / 18.57 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.023/1.023, allocations: 173.3 MB / 201.4 MB, free: 9.23 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 268.4 MB, free: 6.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.89e-05/2.03e-05, allocations: 6.312 kB / 268.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.001616/0.001636, allocations: 0.8778 MB / 269.3 MB, free: 5.34 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003587/0.001995, allocations: 127.5 kB / 269.4 MB, free: 5.215 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.23e-05/0.002087, allocations: 0 / 269.4 MB, free: 5.215 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001176/0.002205, allocations: 19.86 kB / 269.4 MB, free: 5.195 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.002332, allocations: 4 kB / 269.4 MB, free: 5.191 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002034/0.002535, allocations: 43.77 kB / 269.5 MB, free: 5.148 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001193/0.002654, allocations: 43.89 kB / 269.5 MB, free: 5.105 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001007/0.002755, allocations: 8 kB / 269.5 MB, free: 5.098 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001343/0.002889, allocations: 27.91 kB / 269.5 MB, free: 5.07 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.151e-05/0.002981, allocations: 23.91 kB / 269.6 MB, free: 5.047 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.291e-05/0.003004, allocations: 4 kB / 269.6 MB, free: 5.043 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.167e-05/0.003015, allocations: 4 kB / 269.6 MB, free: 5.039 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.116e-05/0.003066, allocations: 15.92 kB / 269.6 MB, free: 5.023 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.452e-05/0.003101, allocations: 15.94 kB / 269.6 MB, free: 5.008 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000126/0.003227, allocations: 47.77 kB / 269.7 MB, free: 4.961 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.003229, allocations: 0 / 269.7 MB, free: 4.961 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.00323, allocations: 0 / 269.7 MB, free: 4.961 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.128e-06/0.003234, allocations: 0 / 269.7 MB, free: 4.961 MB / 250.7 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.0003925/0.003626, allocations: 400.3 kB / 270 MB, free: 4.531 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.003666, allocations: 8.922 kB / 270.1 MB, free: 4.523 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.713e-05/0.003703, allocations: 20.84 kB / 270.1 MB, free: 4.504 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001537/0.003857, allocations: 144.3 kB / 270.2 MB, free: 4.336 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.003867, allocations: 4.375 kB / 270.2 MB, free: 4.332 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.329e-05/0.003881, allocations: 12.31 kB / 270.2 MB, free: 4.32 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.004052, allocations: 105.5 kB / 270.3 MB, free: 4.203 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.004059, allocations: 192 / 270.3 MB, free: 4.203 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.661e-06/0.004064, allocations: 384 / 270.3 MB, free: 4.203 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.004069, allocations: 384 / 270.3 MB, free: 4.203 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.801e-05/0.004087, allocations: 11.92 kB / 270.3 MB, free: 4.191 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.995e-05/0.004187, allocations: 113.2 kB / 270.5 MB, free: 4.055 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001025/0.00429, allocations: 63.14 kB / 270.5 MB, free: 3.98 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.38e-05/0.004324, allocations: 27.86 kB / 270.5 MB, free: 3.949 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.762e-06/0.00433, allocations: 0 / 270.5 MB, free: 3.949 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.004355, allocations: 45.33 kB / 270.6 MB, free: 3.895 MB / 250.7 MB Notification: Performance of pre-optimization done (n=8): time 8.21e-07/0.004356, allocations: 0 / 270.6 MB, free: 3.895 MB / 250.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001286/0.004484, allocations: 69.58 kB / 270.7 MB, free: 3.82 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.004523, allocations: 55.41 kB / 270.7 MB, free: 3.754 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.00463, allocations: 196.7 kB / 270.9 MB, free: 3.547 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.321e-05/0.004643, allocations: 33.69 kB / 270.9 MB, free: 3.508 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.313e-05/0.004686, allocations: 130.9 kB / 271.1 MB, free: 3.375 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.213e-05/0.004698, allocations: 3.953 kB / 271.1 MB, free: 3.371 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.341e-05/0.004731, allocations: 31.36 kB / 271.1 MB, free: 3.332 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001956/0.004927, allocations: 0.4883 MB / 271.6 MB, free: 2.832 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.586e-06/0.004936, allocations: 4 kB / 271.6 MB, free: 2.828 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.751e-06/0.004941, allocations: 0 / 271.6 MB, free: 2.828 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.659e-05/0.004968, allocations: 15.62 kB / 271.6 MB, free: 2.809 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.004969, allocations: 0 / 271.6 MB, free: 2.809 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.317e-05/0.005022, allocations: 33.7 kB / 271.6 MB, free: 2.77 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.005034, allocations: 4 kB / 271.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.618e-06/0.005038, allocations: 0 / 271.6 MB, free: 2.766 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.005051, allocations: 12.08 kB / 271.7 MB, free: 2.754 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.362e-05/0.005084, allocations: 0 / 271.7 MB, free: 2.754 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.365e-06/0.005087, allocations: 0 / 271.7 MB, free: 2.754 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.475e-05/0.005101, allocations: 7.953 kB / 271.7 MB, free: 2.746 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.459e-06/0.005106, allocations: 3.938 kB / 271.7 MB, free: 2.742 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.unitDelay1.u,unitDelay1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.05e-05/0.005176, allocations: 156.6 kB / 271.8 MB, free: 2.578 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.437e-05/0.005241, allocations: 73.56 kB / 271.9 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.52e-05/0.005276, allocations: 16.77 kB / 271.9 MB, free: 2.48 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.005278, allocations: 0 / 271.9 MB, free: 2.48 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-06/0.005279, allocations: 0 / 271.9 MB, free: 2.48 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.005282, allocations: 4 kB / 271.9 MB, free: 2.477 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.248e-05/0.005354, allocations: 113.2 kB / 272 MB, free: 2.34 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.005356, allocations: 0 / 272 MB, free: 2.34 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.903e-05/0.005405, allocations: 19.92 kB / 272 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.005407, allocations: 0 / 272 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.027e-06/0.005411, allocations: 0 / 272 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.005412, allocations: 0 / 272 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.005413, allocations: 0 / 272 MB, free: 2.32 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.164e-05/0.005464, allocations: 80.28 kB / 272.1 MB, free: 2.219 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.392e-05/0.005498, allocations: 19.88 kB / 272.1 MB, free: 2.199 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.005513, allocations: 0 / 272.1 MB, free: 2.199 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.363e-05/0.005527, allocations: 8 kB / 272.2 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.004e-06/0.005529, allocations: 0 / 272.2 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.005533, allocations: 0 / 272.2 MB, free: 2.191 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.054e-05/0.005583, allocations: 138 kB / 272.3 MB, free: 2.059 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.005583, allocations: 0 / 272.3 MB, free: 2.059 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001754/0.005759, allocations: 12 kB / 272.3 MB, free: 2.047 MB / 250.7 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 8.163e-05/0.00584, allocations: 99.23 kB / 272.4 MB, free: 1.941 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.554e-05/0.005906, allocations: 24.06 kB / 272.4 MB, free: 1.914 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-06/0.005907, allocations: 4.062 kB / 272.4 MB, free: 1.91 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.543e-06/0.005909, allocations: 3.938 kB / 272.4 MB, free: 1.906 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002289/0.006138, allocations: 42.47 kB / 272.5 MB, free: 1.863 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002125/0.00635, allocations: 159.3 kB / 272.6 MB, free: 1.68 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.497e-05/0.006385, allocations: 71.33 kB / 272.7 MB, free: 1.59 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.385e-05/0.006399, allocations: 0 / 272.7 MB, free: 1.59 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.436e-05/0.006453, allocations: 78.19 kB / 272.8 MB, free: 1.512 MB / 250.7 MB Notification: Performance of SimCode: time 5.21e-07/0.006454, allocations: 0 / 272.8 MB, free: 1.512 MB / 250.7 MB Notification: Performance of Templates: time 0.002453/0.008907, allocations: 0.7561 MB / 273.5 MB, free: 0.7695 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.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.648532665334642]