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.0009433/0.0009433, 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.0009066/0.0009066, 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.9775/0.9775, allocations: 173.4 MB / 201.5 MB, free: 8.77 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.453e-06/1.453e-06, allocations: 0 / 268.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.177e-05/2.322e-05, allocations: 10.25 kB / 268.5 MB, free: 5.98 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003004/0.003028, allocations: 1.69 MB / 270.2 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004562/0.003484, allocations: 175.3 kB / 270.4 MB, free: 4.105 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.175e-05/0.003566, allocations: 7.938 kB / 270.4 MB, free: 4.098 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 4.972e-05/0.003615, allocations: 3.938 kB / 270.4 MB, free: 4.094 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001278/0.003743, allocations: 7.922 kB / 270.4 MB, free: 4.086 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000236/0.003979, allocations: 63.69 kB / 270.5 MB, free: 4.023 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001149/0.004094, allocations: 55.84 kB / 270.5 MB, free: 3.969 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.493e-05/0.004189, allocations: 32.14 kB / 270.5 MB, free: 3.938 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.319e-05/0.004262, allocations: 31.97 kB / 270.6 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.589e-05/0.004308, allocations: 23.91 kB / 270.6 MB, free: 3.883 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.227e-05/0.00433, allocations: 7.984 kB / 270.6 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.226e-05/0.004343, allocations: 4 kB / 270.6 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.332e-05/0.004386, allocations: 23.92 kB / 270.6 MB, free: 3.848 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.648e-05/0.004413, allocations: 15.92 kB / 270.7 MB, free: 3.832 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001262/0.004539, allocations: 63.67 kB / 270.7 MB, free: 3.77 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.814e-06/0.004541, allocations: 0 / 270.7 MB, free: 3.77 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.123e-06/0.004542, allocations: 0 / 270.7 MB, free: 3.77 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.087e-06/0.004546, allocations: 0 / 270.7 MB, free: 3.77 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.0003366/0.004882, allocations: 280.6 kB / 271 MB, free: 3.469 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.004918, allocations: 12.03 kB / 271 MB, free: 3.457 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.589e-05/0.004954, allocations: 16.92 kB / 271 MB, free: 3.441 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001707/0.005124, allocations: 141.5 kB / 271.2 MB, free: 3.277 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.005141, allocations: 4.375 kB / 271.2 MB, free: 3.273 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.248e-05/0.005153, allocations: 12.36 kB / 271.2 MB, free: 3.262 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002609/0.005414, allocations: 181.4 kB / 271.4 MB, free: 3.066 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.005422, allocations: 192 / 271.4 MB, free: 3.066 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.005429, allocations: 4.312 kB / 271.4 MB, free: 3.062 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.252e-06/0.005435, allocations: 4.375 kB / 271.4 MB, free: 3.059 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.356e-05/0.005469, allocations: 19.88 kB / 271.4 MB, free: 3.039 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002541/0.005723, allocations: 253.2 kB / 271.6 MB, free: 2.77 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.005833, allocations: 91.7 kB / 271.7 MB, free: 2.652 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.751e-05/0.005881, allocations: 42.58 kB / 271.8 MB, free: 2.602 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.164e-05/0.005902, allocations: 16.11 kB / 271.8 MB, free: 2.586 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.005926, allocations: 34.56 kB / 271.8 MB, free: 2.543 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.643e-06/0.005927, allocations: 0 / 271.8 MB, free: 2.543 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001812/0.006109, allocations: 85.48 kB / 271.9 MB, free: 2.453 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.332e-05/0.006172, allocations: 114.8 kB / 272 MB, free: 2.316 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.902e-05/0.006261, allocations: 134.6 kB / 272.1 MB, free: 2.172 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.371e-05/0.006275, allocations: 29.7 kB / 272.2 MB, free: 2.137 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.721e-05/0.006312, allocations: 88.41 kB / 272.2 MB, free: 2.043 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.438e-06/0.006321, allocations: 3.984 kB / 272.3 MB, free: 2.039 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.4e-05/0.006355, allocations: 21.92 kB / 272.3 MB, free: 2.012 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.778e-05/0.006443, allocations: 322.8 kB / 272.6 MB, free: 1.688 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.035e-06/0.006451, allocations: 4 kB / 272.6 MB, free: 1.684 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.552e-05/0.006467, allocations: 13.72 kB / 272.6 MB, free: 1.664 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.989e-05/0.006496, allocations: 21.66 kB / 272.6 MB, free: 1.637 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.006498, allocations: 0 / 272.6 MB, free: 1.637 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.083e-05/0.006559, allocations: 41.62 kB / 272.7 MB, free: 1.59 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.006572, allocations: 4 kB / 272.7 MB, free: 1.586 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.006576, allocations: 0 / 272.7 MB, free: 1.586 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.38e-05/0.00659, allocations: 12.06 kB / 272.7 MB, free: 1.574 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.194e-05/0.006601, allocations: 0 / 272.7 MB, free: 1.574 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.006605, allocations: 3.984 kB / 272.7 MB, free: 1.57 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.221e-05/0.006637, allocations: 0 / 272.7 MB, free: 1.57 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-06/0.006644, allocations: 4 kB / 272.7 MB, free: 1.566 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.489e-05/0.006708, allocations: 112.7 kB / 272.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.635e-05/0.006805, allocations: 61.61 kB / 272.9 MB, free: 1.379 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.332e-05/0.006838, allocations: 16.78 kB / 272.9 MB, free: 1.359 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.006842, allocations: 3.938 kB / 272.9 MB, free: 1.355 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.006845, allocations: 4 kB / 272.9 MB, free: 1.352 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.006848, allocations: 7.938 kB / 272.9 MB, free: 1.344 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.007036, allocations: 73.88 kB / 273 MB, free: 1.254 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.923e-06/0.007038, allocations: 4 kB / 273 MB, free: 1.25 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.684e-05/0.007055, allocations: 7.984 kB / 273 MB, free: 1.242 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.007057, allocations: 0 / 273 MB, free: 1.242 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.007065, allocations: 4 kB / 273 MB, free: 1.238 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.007068, allocations: 4 kB / 273 MB, free: 1.234 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.00707, allocations: 3.938 kB / 273 MB, free: 1.23 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001082/0.007178, allocations: 215.6 kB / 273.2 MB, free: 1 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.275e-05/0.007221, allocations: 19.88 kB / 273.2 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.007234, allocations: 8.031 kB / 273.2 MB, free: 0.9727 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001015/0.007336, allocations: 7.984 kB / 273.2 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.654e-05/0.007362, allocations: 3.938 kB / 273.2 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.764e-06/0.00737, allocations: 8 kB / 273.2 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.122e-05/0.007401, allocations: 23.5 kB / 273.3 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.007401, allocations: 0 / 273.3 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002516/0.007653, allocations: 7.953 kB / 273.3 MB, free: 0.9219 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 9.325e-05/0.007746, allocations: 88.36 kB / 273.4 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 7.723e-05/0.007823, allocations: 32.78 kB / 273.4 MB, free: 0.793 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.007826, allocations: 0 / 273.4 MB, free: 0.793 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.33e-05/0.00784, allocations: 8.859 kB / 273.4 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003562/0.008196, allocations: 46.77 kB / 273.5 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003215/0.008517, allocations: 198.5 kB / 273.6 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.646e-05/0.008574, allocations: 71.33 kB / 273.7 MB, free: 424 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.848e-05/0.008592, allocations: 0 / 273.7 MB, free: 424 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.703e-05/0.008649, allocations: 55.62 kB / 273.8 MB, free: 368 kB / 250.7 MB Notification: Performance of SimCode: time 8.12e-07/0.00865, allocations: 4 kB / 273.8 MB, free: 364 kB / 250.7 MB Notification: Performance of Templates: time 0.002954/0.0116, allocations: 0.8029 MB / 274.6 MB, free: 15.56 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 -s gbode -gbm=radauIIA3 -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.3267863993532956]