Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.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.0009672/0.0009672, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0009161/0.0009161, allocations: 143.4 kB / 24.89 MB, free: 8.727 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 0.9541/0.9541, allocations: 173.4 MB / 201.5 MB, free: 8.766 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.BooleanSignals.TimeBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 268.5 MB, free: 6.051 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.21e-05/2.353e-05, allocations: 6.25 kB / 268.5 MB, free: 6.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse): time 0.002777/0.002801, allocations: 1.53 MB / 270 MB, free: 4.504 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007382/0.003539, allocations: 450.6 kB / 270.4 MB, free: 4.059 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.431e-05/0.003603, allocations: 4 kB / 270.4 MB, free: 4.055 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.228e-05/0.003636, allocations: 11.92 kB / 270.5 MB, free: 4.043 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001528/0.003788, allocations: 15.86 kB / 270.5 MB, free: 4.027 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001683/0.003957, allocations: 35.83 kB / 270.5 MB, free: 3.992 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001025/0.004059, allocations: 55.8 kB / 270.6 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.129e-05/0.00414, allocations: 7.984 kB / 270.6 MB, free: 3.93 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.082e-05/0.004231, allocations: 31.91 kB / 270.6 MB, free: 3.898 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.237e-05/0.004274, allocations: 15.98 kB / 270.6 MB, free: 3.883 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.345e-05/0.004297, allocations: 4 kB / 270.6 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.051e-05/0.004308, allocations: 4 kB / 270.6 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.256e-05/0.00433, allocations: 15.92 kB / 270.6 MB, free: 3.859 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.575e-05/0.004356, allocations: 19.97 kB / 270.7 MB, free: 3.84 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.771e-05/0.004454, allocations: 31.84 kB / 270.7 MB, free: 3.809 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.004456, allocations: 3.938 kB / 270.7 MB, free: 3.805 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.004457, allocations: 4 kB / 270.7 MB, free: 3.801 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.965e-06/0.00446, allocations: 0 / 270.7 MB, free: 3.801 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003876/0.004847, allocations: 264.9 kB / 271 MB, free: 3.52 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.554e-05/0.004883, allocations: 12.03 kB / 271 MB, free: 3.508 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.077e-05/0.004914, allocations: 4.938 kB / 271 MB, free: 3.504 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001488/0.005063, allocations: 129.7 kB / 271.1 MB, free: 3.352 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.607e-05/0.005079, allocations: 384 / 271.1 MB, free: 3.352 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.231e-05/0.005091, allocations: 4.375 kB / 271.1 MB, free: 3.348 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.005309, allocations: 124.4 kB / 271.2 MB, free: 3.211 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.005316, allocations: 192 / 271.2 MB, free: 3.211 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.713e-06/0.005323, allocations: 8.375 kB / 271.2 MB, free: 3.203 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.005329, allocations: 3.938 kB / 271.2 MB, free: 3.199 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.189e-05/0.005361, allocations: 15.92 kB / 271.3 MB, free: 3.184 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.97e-05/0.005431, allocations: 57.05 kB / 271.3 MB, free: 3.113 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001089/0.00554, allocations: 46.55 kB / 271.4 MB, free: 3.059 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.557e-05/0.005565, allocations: 12.86 kB / 271.4 MB, free: 3.043 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.315e-05/0.005578, allocations: 0 / 271.4 MB, free: 3.043 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.005601, allocations: 34.56 kB / 271.4 MB, free: 3 MB / 250.7 MB Notification: Performance of pre-optimization done (n=6): time 1.924e-06/0.005603, allocations: 3.984 kB / 271.4 MB, free: 2.996 MB / 250.7 MB Notification: Performance of matching and sorting (n=6): time 0.000128/0.005731, allocations: 65.61 kB / 271.5 MB, free: 2.926 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.9e-05/0.00578, allocations: 59.34 kB / 271.5 MB, free: 2.855 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.785e-05/0.005847, allocations: 114.7 kB / 271.6 MB, free: 2.73 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.005859, allocations: 25.7 kB / 271.7 MB, free: 2.699 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.558e-05/0.005885, allocations: 84.12 kB / 271.7 MB, free: 2.613 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.265e-05/0.005897, allocations: 7.953 kB / 271.8 MB, free: 2.605 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.432e-05/0.005922, allocations: 9.719 kB / 271.8 MB, free: 2.59 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.194e-05/0.006014, allocations: 322.8 kB / 272.1 MB, free: 2.266 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.37e-06/0.006019, allocations: 256 / 272.1 MB, free: 2.266 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.205e-06/0.006027, allocations: 4 kB / 272.1 MB, free: 2.262 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.027e-05/0.006047, allocations: 16.86 kB / 272.1 MB, free: 2.242 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.006049, allocations: 0 / 272.1 MB, free: 2.242 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.172e-05/0.006101, allocations: 37.69 kB / 272.1 MB, free: 2.199 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.006114, allocations: 8 kB / 272.1 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.006118, allocations: 0 / 272.1 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.006129, allocations: 0 / 272.1 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.885e-05/0.006158, allocations: 0 / 272.1 MB, free: 2.191 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.174e-06/0.00616, allocations: 4 kB / 272.1 MB, free: 2.188 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.856e-05/0.006179, allocations: 3.938 kB / 272.2 MB, free: 2.184 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-06/0.006183, allocations: 4 kB / 272.2 MB, free: 2.18 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (pulse.next) * 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 5.932e-05/0.006242, allocations: 113.9 kB / 272.3 MB, free: 2.059 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.494e-05/0.006297, allocations: 49.62 kB / 272.3 MB, free: 2.004 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.528e-05/0.006322, allocations: 8.438 kB / 272.3 MB, free: 1.992 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.006327, allocations: 7.984 kB / 272.3 MB, free: 1.984 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.006328, allocations: 0 / 272.3 MB, free: 1.984 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.006331, allocations: 0 / 272.3 MB, free: 1.984 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.167e-05/0.006393, allocations: 69.84 kB / 272.4 MB, free: 1.898 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.006394, allocations: 0 / 272.4 MB, free: 1.898 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.126e-05/0.006435, allocations: 7.984 kB / 272.4 MB, free: 1.891 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.006438, allocations: 4 kB / 272.4 MB, free: 1.887 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.12e-06/0.006444, allocations: 4 kB / 272.4 MB, free: 1.883 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.92e-07/0.006444, allocations: 0 / 272.4 MB, free: 1.883 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.006445, allocations: 0 / 272.4 MB, free: 1.883 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.503e-05/0.00649, allocations: 61 kB / 272.5 MB, free: 1.805 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.799e-05/0.006508, allocations: 11.89 kB / 272.5 MB, free: 1.793 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.006524, allocations: 0 / 272.5 MB, free: 1.793 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.672e-05/0.006571, allocations: 19.92 kB / 272.5 MB, free: 1.773 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.576e-06/0.006574, allocations: 0 / 272.5 MB, free: 1.773 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.819e-06/0.006579, allocations: 0 / 272.5 MB, free: 1.773 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.312e-05/0.006602, allocations: 20.84 kB / 272.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006602, allocations: 0 / 272.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001743/0.006777, allocations: 4 kB / 272.5 MB, free: 1.746 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: 3 (pulse.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 1 (pulse.next) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 9.52e-05/0.006872, allocations: 84.47 kB / 272.6 MB, free: 1.656 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.773e-05/0.00694, allocations: 20.86 kB / 272.6 MB, free: 1.633 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.006943, allocations: 0 / 272.6 MB, free: 1.633 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.31e-07/0.006943, allocations: 0 / 272.6 MB, free: 1.633 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001792/0.007122, allocations: 37.92 kB / 272.7 MB, free: 1.594 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002196/0.007342, allocations: 122.5 kB / 272.8 MB, free: 1.449 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.94e-05/0.007381, allocations: 63.34 kB / 272.9 MB, free: 1.367 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.45e-05/0.007396, allocations: 0 / 272.9 MB, free: 1.367 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.921e-05/0.007455, allocations: 59.36 kB / 272.9 MB, free: 1.309 MB / 250.7 MB Notification: Performance of SimCode: time 5e-07/0.007455, allocations: 0 / 272.9 MB, free: 1.309 MB / 250.7 MB Notification: Performance of Templates: time 0.002613/0.01007, allocations: 0.7014 MB / 273.6 MB, free: 0.6094 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TimeBasedPulse/TimeBasedPulse.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.398380377329886]