Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.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.0009419/0.0009419, 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.0009323/0.0009323, allocations: 152 kB / 24.81 MB, free: 9.281 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.044/1.044, allocations: 173.4 MB / 201.4 MB, free: 9.242 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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.764e-06/1.764e-06, allocations: 0 / 268.4 MB, free: 6.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.574e-05/1.75e-05, allocations: 6.25 kB / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003131/0.003148, allocations: 1.643 MB / 270.1 MB, free: 4.562 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004992/0.003647, allocations: 179.3 kB / 270.2 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.00375, allocations: 0 / 270.2 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.966e-05/0.003809, allocations: 11.86 kB / 270.2 MB, free: 4.375 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.003955, allocations: 11.94 kB / 270.3 MB, free: 4.363 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002414/0.004197, allocations: 51.75 kB / 270.3 MB, free: 4.312 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.004321, allocations: 59.84 kB / 270.4 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.004441, allocations: 28.14 kB / 270.4 MB, free: 4.227 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.163e-05/0.004513, allocations: 31.97 kB / 270.4 MB, free: 4.195 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.269e-05/0.004566, allocations: 27.89 kB / 270.5 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.36e-05/0.004589, allocations: 8 kB / 270.5 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.411e-05/0.004603, allocations: 8 kB / 270.5 MB, free: 4.152 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.75e-05/0.004651, allocations: 11.94 kB / 270.5 MB, free: 4.141 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.885e-05/0.00469, allocations: 27.91 kB / 270.5 MB, free: 4.113 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001368/0.004826, allocations: 55.69 kB / 270.6 MB, free: 4.059 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.883e-06/0.004828, allocations: 0 / 270.6 MB, free: 4.059 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.004829, allocations: 0 / 270.6 MB, free: 4.059 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.108e-06/0.004833, allocations: 0 / 270.6 MB, free: 4.059 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: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.00051/0.005343, allocations: 412.2 kB / 271 MB, free: 3.617 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.005387, allocations: 12.03 kB / 271 MB, free: 3.605 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.366e-05/0.00543, allocations: 20.84 kB / 271 MB, free: 3.586 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001751/0.005605, allocations: 152.3 kB / 271.1 MB, free: 3.41 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.005628, allocations: 384 / 271.1 MB, free: 3.41 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.643e-05/0.005645, allocations: 12.38 kB / 271.2 MB, free: 3.398 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000221/0.005866, allocations: 175.7 kB / 271.3 MB, free: 3.199 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-06/0.005872, allocations: 192 / 271.3 MB, free: 3.199 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.936e-06/0.00588, allocations: 12.31 kB / 271.3 MB, free: 3.188 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.005885, allocations: 4.375 kB / 271.3 MB, free: 3.184 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.881e-05/0.005914, allocations: 27.8 kB / 271.4 MB, free: 3.156 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002442/0.006158, allocations: 387 kB / 271.7 MB, free: 2.742 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.911e-05/0.006247, allocations: 109.1 kB / 271.9 MB, free: 2.598 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.85e-05/0.006285, allocations: 59.27 kB / 271.9 MB, free: 2.527 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.985e-05/0.006305, allocations: 8 kB / 271.9 MB, free: 2.52 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/0.006324, allocations: 33.39 kB / 272 MB, free: 2.477 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 8.22e-07/0.006325, allocations: 0 / 272 MB, free: 2.477 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001581/0.006483, allocations: 113.4 kB / 272.1 MB, free: 2.359 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.643e-05/0.006529, allocations: 110.8 kB / 272.2 MB, free: 2.227 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.131e-05/0.006621, allocations: 193.9 kB / 272.4 MB, free: 2.02 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.006633, allocations: 25.7 kB / 272.4 MB, free: 1.988 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.087e-05/0.006683, allocations: 143 kB / 272.5 MB, free: 1.84 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.056e-05/0.006694, allocations: 7.938 kB / 272.5 MB, free: 1.832 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.741e-05/0.006721, allocations: 23.36 kB / 272.6 MB, free: 1.801 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.006832, allocations: 0.4884 MB / 273 MB, free: 1.301 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.38e-06/0.006837, allocations: 0 / 273 MB, free: 1.301 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.624e-05/0.006853, allocations: 27.61 kB / 273.1 MB, free: 1.266 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.134e-05/0.006875, allocations: 23.38 kB / 273.1 MB, free: 1.234 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.006876, allocations: 0 / 273.1 MB, free: 1.234 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.479e-05/0.006921, allocations: 45.58 kB / 273.1 MB, free: 1.184 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.006932, allocations: 6.5 kB / 273.1 MB, free: 1.18 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.947e-06/0.006936, allocations: 4 kB / 273.1 MB, free: 1.176 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.977e-06/0.006945, allocations: 3.938 kB / 273.2 MB, free: 1.172 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.608e-06/0.006954, allocations: 3.984 kB / 273.2 MB, free: 1.168 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.645e-06/0.006957, allocations: 4.125 kB / 273.2 MB, free: 1.164 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.273e-05/0.00698, allocations: 4 kB / 273.2 MB, free: 1.16 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-06/0.006984, allocations: 0 / 273.2 MB, free: 1.16 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * 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 6.474e-05/0.007049, allocations: 160.6 kB / 273.3 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.023e-05/0.007119, allocations: 69.58 kB / 273.4 MB, free: 0.918 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.089e-05/0.00715, allocations: 20.77 kB / 273.4 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.007152, allocations: 7.938 kB / 273.4 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.007154, allocations: 0 / 273.4 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.007158, allocations: 4 kB / 273.4 MB, free: 0.8828 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001184/0.007276, allocations: 117.1 kB / 273.5 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.007277, allocations: 4 kB / 273.5 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-06/0.007285, allocations: 7.938 kB / 273.5 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.007286, allocations: 0 / 273.5 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.149e-06/0.007291, allocations: 4 kB / 273.6 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.007294, allocations: 3.984 kB / 273.6 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.007294, allocations: 0 / 273.6 MB, free: 0.7227 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001151/0.007409, allocations: 322.7 kB / 273.9 MB, free: 392 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.98e-05/0.007439, allocations: 23.88 kB / 273.9 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.158e-06/0.007448, allocations: 4 kB / 273.9 MB, free: 364 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.65e-05/0.007505, allocations: 4 kB / 273.9 MB, free: 360 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.179e-05/0.007527, allocations: 15.95 kB / 273.9 MB, free: 344 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.00753, allocations: 0 / 273.9 MB, free: 344 kB / 250.7 MB Notification: Performance of sorting global known variables: time 4.248e-05/0.007572, allocations: 139.2 kB / 274.1 MB, free: 204 kB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007572, allocations: 0 / 274.1 MB, free: 204 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001584/0.007731, allocations: 12 kB / 274.1 MB, free: 192 kB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (step.y,hold1.y,sample1.y,hold1.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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 6.769e-05/0.007798, allocations: 98.12 kB / 274.2 MB, free: 88 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.895e-05/0.007867, allocations: 35.61 kB / 274.2 MB, free: 48 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.132e-06/0.007869, allocations: 0 / 274.2 MB, free: 48 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.319e-05/0.007882, allocations: 19.75 kB / 274.2 MB, free: 24 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002682/0.00815, allocations: 38.89 kB / 274.3 MB, free: 15.98 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004181/0.008568, allocations: 206.9 kB / 274.5 MB, free: 15.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.928e-05/0.008617, allocations: 75.33 kB / 274.5 MB, free: 15.65 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.478e-05/0.008632, allocations: 0 / 274.5 MB, free: 15.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.36e-05/0.008686, allocations: 78.2 kB / 274.6 MB, free: 15.57 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.008686, allocations: 0 / 274.6 MB, free: 15.57 MB / 266.7 MB Notification: Performance of Templates: time 0.002275/0.01096, allocations: 0.8328 MB / 275.4 MB, free: 14.75 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.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.7696329788304865]