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.0008891/0.0008891, 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.0009018/0.0009018, allocations: 147.1 kB / 24.9 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.88/0.88, allocations: 173.4 MB / 201.5 MB, free: 8.746 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.533e-06/1.533e-06, allocations: 0 / 268.5 MB, free: 6.031 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.175e-05/1.329e-05, allocations: 6.312 kB / 268.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.005384/0.005398, allocations: 1.663 MB / 270.1 MB, free: 4.344 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003658/0.005764, allocations: 167.3 kB / 270.3 MB, free: 4.18 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.244e-05/0.005836, allocations: 7.938 kB / 270.3 MB, free: 4.172 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.687e-05/0.005883, allocations: 3.938 kB / 270.3 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001094/0.005992, allocations: 11.86 kB / 270.3 MB, free: 4.156 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000186/0.006178, allocations: 55.77 kB / 270.4 MB, free: 4.102 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001005/0.006279, allocations: 59.83 kB / 270.4 MB, free: 4.043 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.605e-05/0.006365, allocations: 28.14 kB / 270.5 MB, free: 4.016 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.934e-05/0.006424, allocations: 35.97 kB / 270.5 MB, free: 3.98 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.74e-05/0.006462, allocations: 23.91 kB / 270.5 MB, free: 3.957 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.084e-05/0.006482, allocations: 4 kB / 270.5 MB, free: 3.953 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.062e-05/0.006493, allocations: 4 kB / 270.5 MB, free: 3.949 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.204e-05/0.006535, allocations: 23.92 kB / 270.5 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.403e-05/0.006559, allocations: 19.91 kB / 270.6 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.925e-05/0.006658, allocations: 55.75 kB / 270.6 MB, free: 3.852 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.00666, allocations: 0 / 270.6 MB, free: 3.852 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.11e-07/0.00666, allocations: 3.938 kB / 270.6 MB, free: 3.848 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.465e-06/0.006663, allocations: 0 / 270.6 MB, free: 3.848 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.0002938/0.006957, allocations: 284.6 kB / 270.9 MB, free: 3.543 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.932e-05/0.006986, allocations: 16.03 kB / 270.9 MB, free: 3.527 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.059e-05/0.007017, allocations: 12.94 kB / 270.9 MB, free: 3.516 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001387/0.007155, allocations: 140.5 kB / 271.1 MB, free: 3.355 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.007171, allocations: 4.375 kB / 271.1 MB, free: 3.352 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.377e-05/0.007185, allocations: 8.375 kB / 271.1 MB, free: 3.344 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00325/0.01043, allocations: 178.4 kB / 271.3 MB, free: 3.148 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.01044, allocations: 4.188 kB / 271.3 MB, free: 3.145 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-06/0.01045, allocations: 384 / 271.3 MB, free: 3.145 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.01046, allocations: 8.312 kB / 271.3 MB, free: 3.137 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.598e-05/0.01049, allocations: 15.94 kB / 271.3 MB, free: 3.121 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002261/0.01072, allocations: 253.2 kB / 271.5 MB, free: 2.852 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001016/0.01082, allocations: 95.64 kB / 271.6 MB, free: 2.73 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.363e-05/0.01086, allocations: 42.61 kB / 271.7 MB, free: 2.68 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.625e-05/0.01088, allocations: 8.125 kB / 271.7 MB, free: 2.672 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.3e-05/0.0109, allocations: 42.56 kB / 271.7 MB, free: 2.621 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 9.91e-07/0.0109, allocations: 0 / 271.7 MB, free: 2.621 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001565/0.01106, allocations: 81.48 kB / 271.8 MB, free: 2.535 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.01111, allocations: 118.8 kB / 271.9 MB, free: 2.395 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.618e-05/0.01119, allocations: 130.6 kB / 272 MB, free: 2.254 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.097e-05/0.0112, allocations: 29.7 kB / 272.1 MB, free: 2.219 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.717e-05/0.01124, allocations: 88.41 kB / 272.2 MB, free: 2.125 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.863e-06/0.01125, allocations: 0 / 272.2 MB, free: 2.125 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.496e-05/0.01128, allocations: 29.64 kB / 272.2 MB, free: 2.09 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.917e-05/0.01136, allocations: 311.1 kB / 272.5 MB, free: 1.777 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.746e-06/0.01137, allocations: 12 kB / 272.5 MB, free: 1.766 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.166e-05/0.01138, allocations: 9.719 kB / 272.5 MB, free: 1.75 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.825e-05/0.01141, allocations: 29.62 kB / 272.5 MB, free: 1.715 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.01141, allocations: 4 kB / 272.5 MB, free: 1.711 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.916e-05/0.01146, allocations: 37.64 kB / 272.6 MB, free: 1.668 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.01147, allocations: 4.625 kB / 272.6 MB, free: 1.664 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.01148, allocations: 3.984 kB / 272.6 MB, free: 1.66 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.01149, allocations: 4.062 kB / 272.6 MB, free: 1.656 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.665e-06/0.01149, allocations: 8 kB / 272.6 MB, free: 1.648 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.924e-06/0.0115, allocations: 0 / 272.6 MB, free: 1.648 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.59e-05/0.01152, allocations: 0 / 272.6 MB, free: 1.648 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.141e-06/0.01153, allocations: 4 kB / 272.6 MB, free: 1.645 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 5.62e-05/0.01158, allocations: 112.7 kB / 272.7 MB, free: 1.523 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.204e-05/0.01167, allocations: 61.61 kB / 272.8 MB, free: 1.457 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.953e-05/0.0117, allocations: 20.77 kB / 272.8 MB, free: 1.434 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.0117, allocations: 3.938 kB / 272.8 MB, free: 1.43 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.0117, allocations: 4 kB / 272.8 MB, free: 1.426 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.01171, allocations: 0 / 272.8 MB, free: 1.426 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000167/0.01187, allocations: 85.8 kB / 272.9 MB, free: 1.324 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.01187, allocations: 4 kB / 272.9 MB, free: 1.32 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.744e-06/0.01188, allocations: 0 / 272.9 MB, free: 1.32 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.01188, allocations: 4 kB / 272.9 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.01189, allocations: 4 kB / 272.9 MB, free: 1.312 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.01189, allocations: 0 / 272.9 MB, free: 1.312 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.01189, allocations: 4 kB / 272.9 MB, free: 1.309 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.754e-05/0.01199, allocations: 215.6 kB / 273.1 MB, free: 1.078 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.855e-05/0.01203, allocations: 19.88 kB / 273.1 MB, free: 1.059 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.01205, allocations: 8 kB / 273.1 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.578e-05/0.01214, allocations: 4.031 kB / 273.1 MB, free: 1.047 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.154e-05/0.01216, allocations: 7.938 kB / 273.1 MB, free: 1.039 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.65e-06/0.01217, allocations: 4 kB / 273.2 MB, free: 1.035 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.669e-05/0.01219, allocations: 27.48 kB / 273.2 MB, free: 1.008 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01219, allocations: 0 / 273.2 MB, free: 1.008 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002291/0.01242, allocations: 11.95 kB / 273.2 MB, free: 0.9961 MB / 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 7.036e-05/0.01249, allocations: 88.34 kB / 273.3 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 5.934e-05/0.01255, allocations: 28.8 kB / 273.3 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.01256, allocations: 4 kB / 273.3 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.151e-05/0.01257, allocations: 8.859 kB / 273.3 MB, free: 0.8555 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.01286, allocations: 42.77 kB / 273.4 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003292/0.01615, allocations: 202.5 kB / 273.6 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.353e-05/0.0162, allocations: 67.34 kB / 273.6 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.626e-05/0.01622, allocations: 0 / 273.6 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002878/0.01651, allocations: 59.36 kB / 273.7 MB, free: 444 kB / 250.7 MB Notification: Performance of SimCode: time 8.41e-07/0.01651, allocations: 4.25 kB / 273.7 MB, free: 440 kB / 250.7 MB Notification: Performance of Templates: time 0.002329/0.01884, allocations: 0.8028 MB / 274.5 MB, free: 15.63 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.381818481720984]