Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 84.34 kB / 20.95 MB, free: 3.449 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 169.3 kB / 24.27 MB, free: 140 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.485/1.485, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.194e-06/2.194e-06, allocations: 3.938 kB / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.802e-05/3.022e-05, allocations: 2.312 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003088/0.003119, allocations: 1.63 MB / 274 MB, free: 188 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004812/0.0036, allocations: 167.4 kB / 274.1 MB, free: 20 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.084e-05/0.003681, allocations: 3.938 kB / 274.1 MB, free: 16 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.697e-05/0.003748, allocations: 7.922 kB / 274.1 MB, free: 8 kB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000131/0.003879, allocations: 7.938 kB / 274.1 MB, free: 0 / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002611/0.00414, allocations: 63.81 kB / 274.2 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.004268, allocations: 55.84 kB / 274.3 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.004389, allocations: 28.2 kB / 274.3 MB, free: 15.85 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.319e-05/0.004462, allocations: 31.91 kB / 274.3 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.003e-05/0.004512, allocations: 23.95 kB / 274.3 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.251e-05/0.004535, allocations: 4 kB / 274.3 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.682e-05/0.004552, allocations: 8 kB / 274.3 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.165e-05/0.004603, allocations: 15.94 kB / 274.4 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.041e-05/0.004654, allocations: 23.91 kB / 274.4 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.004812, allocations: 79.64 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.834e-06/0.004814, allocations: 4 kB / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.004814, allocations: 0 / 274.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.004819, allocations: 0 / 274.5 MB, free: 15.66 MB / 266.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.0005098/0.005328, allocations: 309.9 kB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.005368, allocations: 12.03 kB / 274.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.812e-05/0.005426, allocations: 16.84 kB / 274.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002534/0.005679, allocations: 145.6 kB / 274.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.005698, allocations: 384 / 274.9 MB, free: 15.13 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.096e-05/0.005719, allocations: 16.31 kB / 275 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004112/0.00613, allocations: 190.3 kB / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.006137, allocations: 192 / 275.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.448e-05/0.006152, allocations: 4.375 kB / 275.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.006157, allocations: 384 / 275.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001082/0.006265, allocations: 39.92 kB / 275.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000417/0.006682, allocations: 305.5 kB / 275.5 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.006877, allocations: 111.8 kB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.006984, allocations: 58.69 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.115e-05/0.007015, allocations: 7.984 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.778e-05/0.007053, allocations: 38.5 kB / 275.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 9.12e-07/0.007054, allocations: 0 / 275.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003627/0.007416, allocations: 133.4 kB / 275.8 MB, free: 14.13 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.007523, allocations: 110.8 kB / 275.9 MB, free: 14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.007675, allocations: 140.6 kB / 276.1 MB, free: 13.86 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.603e-05/0.007701, allocations: 29.7 kB / 276.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.005e-05/0.007781, allocations: 92.62 kB / 276.2 MB, free: 13.72 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.272e-05/0.007794, allocations: 7.984 kB / 276.2 MB, free: 13.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.52e-05/0.007839, allocations: 25.67 kB / 276.2 MB, free: 13.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.008017, allocations: 310.8 kB / 276.5 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.533e-05/0.008052, allocations: 7.984 kB / 276.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.499e-05/0.008087, allocations: 17.72 kB / 276.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002921/0.00838, allocations: 29.64 kB / 276.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.008381, allocations: 0 / 276.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001236/0.008505, allocations: 57.69 kB / 276.6 MB, free: 13.24 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.00852, allocations: 7.938 kB / 276.6 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.008524, allocations: 0 / 276.6 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.008538, allocations: 0 / 276.6 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.343e-05/0.008551, allocations: 4 kB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.008556, allocations: 0 / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.108e-05/0.008587, allocations: 7.938 kB / 276.7 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.008598, allocations: 4 kB / 276.7 MB, free: 13.22 MB / 266.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 0.0001122/0.00871, allocations: 117.8 kB / 276.8 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000164/0.008874, allocations: 101.9 kB / 276.9 MB, free: 12.99 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.129e-05/0.008915, allocations: 12.78 kB / 276.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.419e-06/0.00892, allocations: 4 kB / 276.9 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.008925, allocations: 0 / 276.9 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.008929, allocations: 0 / 276.9 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002207/0.00915, allocations: 125.2 kB / 277 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.009151, allocations: 4 kB / 277 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.278e-05/0.009164, allocations: 0 / 277 MB, free: 12.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.00917, allocations: 4 kB / 277 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.03e-05/0.00918, allocations: 7.875 kB / 277 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.009182, allocations: 0 / 277 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.009185, allocations: 8 kB / 277 MB, free: 12.8 MB / 266.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:7987:5-7987: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.0004447/0.00963, allocations: 336.5 kB / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.757e-05/0.009677, allocations: 19.94 kB / 277.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.794e-05/0.009695, allocations: 4 kB / 277.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001051/0.009801, allocations: 7.938 kB / 277.4 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.335e-05/0.009844, allocations: 7.938 kB / 277.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.864e-06/0.009852, allocations: 4 kB / 277.4 MB, free: 12.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.212e-05/0.009944, allocations: 115.2 kB / 277.5 MB, free: 12.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.009944, allocations: 0 / 277.5 MB, free: 12.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002782/0.01022, allocations: 4 kB / 277.5 MB, free: 12.29 MB / 266.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 0.0001494/0.01037, allocations: 110.9 kB / 277.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000152/0.01052, allocations: 35.92 kB / 277.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.279e-06/0.01053, allocations: 4 kB / 277.7 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.169e-05/0.01056, allocations: 8.172 kB / 277.7 MB, free: 12.13 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004646/0.01103, allocations: 65.31 kB / 277.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004817/0.01151, allocations: 215.6 kB / 278 MB, free: 11.82 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001148/0.01162, allocations: 87.31 kB / 278 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.106e-05/0.01164, allocations: 4 kB / 278 MB, free: 11.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.735e-05/0.01168, allocations: 8.5 kB / 278.1 MB, free: 11.7 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.01168, allocations: 0 / 278.1 MB, free: 11.7 MB / 266.7 MB Notification: Performance of Templates: time 0.003565/0.01525, allocations: 0.7773 MB / 278.8 MB, free: 10.94 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.218542558024637]