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.00118/0.00118, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.00121/0.00121, allocations: 141.1 kB / 24.54 MB, free: 40 kB / 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.94/0.94, allocations: 173.4 MB / 201.2 MB, free: 9.32 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 2.355e-06/2.355e-06, allocations: 0 / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.112e-05/4.347e-05, allocations: 5.969 kB / 268 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003592/0.003636, allocations: 1.651 MB / 269.7 MB, free: 4.754 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004692/0.004105, allocations: 179.2 kB / 269.8 MB, free: 4.578 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.506e-05/0.0042, allocations: 0 / 269.8 MB, free: 4.578 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.255e-05/0.004262, allocations: 11.86 kB / 269.8 MB, free: 4.566 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001403/0.004403, allocations: 7.938 kB / 269.8 MB, free: 4.559 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002893/0.004692, allocations: 47.81 kB / 269.9 MB, free: 4.512 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002133/0.004905, allocations: 63.83 kB / 270 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.005023, allocations: 24.16 kB / 270 MB, free: 4.426 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.989e-05/0.005102, allocations: 43.89 kB / 270 MB, free: 4.383 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.396e-05/0.005146, allocations: 23.91 kB / 270 MB, free: 4.359 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.564e-05/0.005172, allocations: 4 kB / 270.1 MB, free: 4.355 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.428e-05/0.005186, allocations: 8 kB / 270.1 MB, free: 4.348 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.468e-05/0.005241, allocations: 19.91 kB / 270.1 MB, free: 4.328 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.437e-05/0.005275, allocations: 19.94 kB / 270.1 MB, free: 4.309 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.005429, allocations: 55.69 kB / 270.2 MB, free: 4.254 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.005432, allocations: 0 / 270.2 MB, free: 4.254 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.005433, allocations: 0 / 270.2 MB, free: 4.254 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.005439, allocations: 4 kB / 270.2 MB, free: 4.25 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.0004061/0.005845, allocations: 412.3 kB / 270.6 MB, free: 3.809 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.005882, allocations: 8.031 kB / 270.6 MB, free: 3.801 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.072e-05/0.005933, allocations: 20.84 kB / 270.6 MB, free: 3.781 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.006132, allocations: 152.3 kB / 270.7 MB, free: 3.605 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.006155, allocations: 8.375 kB / 270.7 MB, free: 3.598 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.362e-05/0.006168, allocations: 4.375 kB / 270.7 MB, free: 3.594 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002886/0.006457, allocations: 195.8 kB / 270.9 MB, free: 3.375 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.175e-05/0.006469, allocations: 4.172 kB / 270.9 MB, free: 3.371 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.006477, allocations: 384 / 270.9 MB, free: 3.371 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.006487, allocations: 4.375 kB / 270.9 MB, free: 3.367 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.654e-05/0.006533, allocations: 35.84 kB / 271 MB, free: 3.332 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003012/0.006834, allocations: 402.4 kB / 271.4 MB, free: 2.895 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.006954, allocations: 121.3 kB / 271.5 MB, free: 2.738 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.97e-05/0.007014, allocations: 55.17 kB / 271.5 MB, free: 2.672 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.007037, allocations: 4 kB / 271.6 MB, free: 2.668 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001556/0.007193, allocations: 45.38 kB / 271.6 MB, free: 2.613 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.007194, allocations: 0 / 271.6 MB, free: 2.613 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002161/0.00741, allocations: 121.3 kB / 271.7 MB, free: 2.488 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.007468, allocations: 114.8 kB / 271.8 MB, free: 2.352 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.802e-05/0.007566, allocations: 193.9 kB / 272 MB, free: 2.145 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.218e-06/0.007575, allocations: 25.7 kB / 272 MB, free: 2.113 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.509e-05/0.007631, allocations: 139.1 kB / 272.2 MB, free: 1.969 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.089e-05/0.007641, allocations: 7.922 kB / 272.2 MB, free: 1.961 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.003e-05/0.007671, allocations: 27.38 kB / 272.2 MB, free: 1.926 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.007779, allocations: 492.4 kB / 272.7 MB, free: 1.434 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.166e-05/0.00779, allocations: 7.984 kB / 272.7 MB, free: 1.426 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.916e-05/0.00781, allocations: 23.38 kB / 272.7 MB, free: 1.395 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.702e-05/0.007837, allocations: 19.38 kB / 272.7 MB, free: 1.367 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.007838, allocations: 0 / 272.7 MB, free: 1.367 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.538e-05/0.007894, allocations: 49.59 kB / 272.8 MB, free: 1.312 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.007907, allocations: 7.938 kB / 272.8 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.007913, allocations: 3.984 kB / 272.8 MB, free: 1.301 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.007931, allocations: 8.125 kB / 272.8 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.917e-05/0.00795, allocations: 0 / 272.8 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.007956, allocations: 0 / 272.8 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.185e-05/0.007988, allocations: 3.938 kB / 272.8 MB, free: 1.289 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.613e-06/0.007994, allocations: 4 kB / 272.8 MB, free: 1.285 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.516e-05/0.008059, allocations: 152.6 kB / 273 MB, free: 1.125 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.581e-05/0.008145, allocations: 85.58 kB / 273 MB, free: 1.035 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.366e-05/0.008189, allocations: 20.7 kB / 273.1 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.008191, allocations: 0 / 273.1 MB, free: 1.012 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.008195, allocations: 4 kB / 273.1 MB, free: 1.008 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.008199, allocations: 0 / 273.1 MB, free: 1.008 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001924/0.008392, allocations: 140.6 kB / 273.2 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.008393, allocations: 0 / 273.2 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.25e-05/0.008406, allocations: 7.984 kB / 273.2 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.614e-06/0.008408, allocations: 0 / 273.2 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.008416, allocations: 0 / 273.2 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.008419, allocations: 7.938 kB / 273.2 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.00842, allocations: 0 / 273.2 MB, free: 0.8203 MB / 250.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:337:7-337:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:347:7-347:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold1.y hold1.u xor1.y xor1.u2 xor.y equations: xor.y = not (xor.u1 and xor.u2 or not xor.u1 and not xor.u2) xor1.u2 = xor.y xor1.y = not (xor1.u1 and xor1.u2 or not xor1.u1 and not xor1.u2) hold1.u = xor1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) xor.u2 = sample2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:351:7-351:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:202:5-202:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:113:7-113:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8020:5-8020:89:writable] Error: Internal error Transformation module sort components failed Warning: The optimization module detectJacobianSparsePattern failed. This module will be skipped and the transformation process continued. Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003036/0.008723, allocations: 427.5 kB / 273.6 MB, free: 388 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.306e-05/0.008766, allocations: 19.88 kB / 273.7 MB, free: 368 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.008783, allocations: 8 kB / 273.7 MB, free: 360 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.008888, allocations: 3.938 kB / 273.7 MB, free: 356 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.969e-05/0.008918, allocations: 7.984 kB / 273.7 MB, free: 348 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.008925, allocations: 4 kB / 273.7 MB, free: 344 kB / 250.7 MB Notification: Performance of sorting global known variables: time 5.837e-05/0.008983, allocations: 141.8 kB / 273.8 MB, free: 204 kB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008983, allocations: 4 kB / 273.8 MB, free: 200 kB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002668/0.00925, allocations: 4 kB / 273.8 MB, free: 196 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 9.229e-05/0.009343, allocations: 114.2 kB / 273.9 MB, free: 76 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001007/0.009443, allocations: 31.67 kB / 274 MB, free: 40 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.009445, allocations: 0 / 274 MB, free: 40 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.652e-05/0.009461, allocations: 15.62 kB / 274 MB, free: 20 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004448/0.009906, allocations: 42.88 kB / 274 MB, free: 15.98 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003541/0.01026, allocations: 211 kB / 274.2 MB, free: 15.73 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.548e-05/0.01032, allocations: 67.34 kB / 274.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.762e-05/0.01033, allocations: 16.05 kB / 274.3 MB, free: 15.63 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.964e-05/0.01036, allocations: 12.5 kB / 274.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.01036, allocations: 0 / 274.3 MB, free: 15.62 MB / 266.7 MB Notification: Performance of Templates: time 0.003096/0.01346, allocations: 0.7718 MB / 275.1 MB, free: 14.85 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.9733815821819007]