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.001286/0.001286, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 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.001449/0.001449, allocations: 209.8 kB / 24.49 MB, free: 4.133 MB / 14.72 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.392/1.392, allocations: 230.6 MB / 258.3 MB, free: 8.234 MB / 206.1 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 0.001641/0.001641, allocations: 47.92 kB / 379 MB, free: 2.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2388, allocations: 53.36 MB / 432.4 MB, free: 6.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002876/0.2417, allocations: 1.636 MB / 434 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004596/0.2421, allocations: 171.3 kB / 434.2 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.982e-05/0.2422, allocations: 4 kB / 434.2 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.844e-05/0.2423, allocations: 7.875 kB / 434.2 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001146/0.2424, allocations: 7.938 kB / 434.2 MB, free: 5.125 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002482/0.2426, allocations: 51.81 kB / 434.3 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000123/0.2428, allocations: 59.84 kB / 434.3 MB, free: 5.016 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001187/0.2429, allocations: 36.2 kB / 434.4 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.277e-05/0.2429, allocations: 23.92 kB / 434.4 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.316e-05/0.243, allocations: 31.78 kB / 434.4 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.396e-05/0.243, allocations: 8 kB / 434.4 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.328e-05/0.243, allocations: 4 kB / 434.4 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.082e-05/0.2431, allocations: 19.92 kB / 434.4 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.428e-05/0.2431, allocations: 35.78 kB / 434.5 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.2432, allocations: 77.14 kB / 434.6 MB, free: 4.785 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.2433, allocations: 4 kB / 434.6 MB, free: 4.781 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2433, allocations: 0 / 434.6 MB, free: 4.781 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.2433, allocations: 0 / 434.6 MB, free: 4.781 MB / 334.1 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.0004615/0.2437, allocations: 313.6 kB / 434.9 MB, free: 4.445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.402e-05/0.2438, allocations: 8.031 kB / 434.9 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.393e-05/0.2438, allocations: 16.84 kB / 434.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002341/0.244, allocations: 145.1 kB / 435 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.2441, allocations: 8.375 kB / 435 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.2441, allocations: 8.375 kB / 435 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003695/0.2444, allocations: 184.7 kB / 435.2 MB, free: 4.043 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.2445, allocations: 4.125 kB / 435.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.2445, allocations: 11.88 kB / 435.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.2445, allocations: 4 kB / 435.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.455e-05/0.2446, allocations: 31.98 kB / 435.3 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003986/0.245, allocations: 348.9 kB / 435.6 MB, free: 3.602 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.2451, allocations: 111.8 kB / 435.7 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.743e-05/0.2452, allocations: 62.67 kB / 435.8 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.2453, allocations: 0 / 435.8 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/0.2453, allocations: 42.5 kB / 435.8 MB, free: 3.344 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.002e-06/0.2453, allocations: 0 / 435.8 MB, free: 3.344 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003189/0.2456, allocations: 129.5 kB / 436 MB, free: 3.211 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.531e-05/0.2457, allocations: 119 kB / 436.1 MB, free: 3.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.2458, allocations: 133.8 kB / 436.2 MB, free: 2.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.2459, allocations: 29.7 kB / 436.2 MB, free: 2.895 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.863e-05/0.2459, allocations: 88.36 kB / 436.3 MB, free: 2.801 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-05/0.2459, allocations: 11.98 kB / 436.3 MB, free: 2.789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.88e-05/0.246, allocations: 37.66 kB / 436.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.2461, allocations: 314.8 kB / 436.7 MB, free: 2.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.445e-05/0.2462, allocations: 20.36 kB / 436.7 MB, free: 2.41 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.585e-05/0.2463, allocations: 77.44 kB / 436.8 MB, free: 2.301 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001459/0.2464, allocations: 113.2 kB / 436.9 MB, free: 2.156 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.2464, allocations: 4 kB / 436.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001861/0.2466, allocations: 113.4 kB / 437 MB, free: 2.035 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.2466, allocations: 11.62 kB / 437 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.2466, allocations: 8 kB / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.316e-05/0.2466, allocations: 0 / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.11e-05/0.2466, allocations: 11.92 kB / 437 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.486e-06/0.2467, allocations: 4 kB / 437 MB, free: 2.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.558e-05/0.2467, allocations: 11.95 kB / 437 MB, free: 1.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.2467, allocations: 11.94 kB / 437.1 MB, free: 1.98 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 12 (step.y,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,sample2.y,hold1.y,hold1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001051/0.2468, allocations: 133.7 kB / 437.2 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001409/0.247, allocations: 81.58 kB / 437.3 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.177e-05/0.247, allocations: 20.72 kB / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.247, allocations: 0 / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.247, allocations: 0 / 437.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.247, allocations: 4 kB / 437.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002374/0.2473, allocations: 160.6 kB / 437.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.2473, allocations: 0 / 437.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.281e-05/0.2473, allocations: 4 kB / 437.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2473, allocations: 0 / 437.4 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.2473, allocations: 8 kB / 437.5 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.219e-05/0.2473, allocations: 3.938 kB / 437.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2473, allocations: 4 kB / 437.5 MB, free: 1.508 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8030:5-8030: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.0003723/0.2477, allocations: 337.4 kB / 437.8 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.739e-05/0.2477, allocations: 27.81 kB / 437.8 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.2478, allocations: 8 kB / 437.8 MB, free: 1.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.29e-05/0.2479, allocations: 4 kB / 437.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.896e-05/0.2479, allocations: 0 / 437.8 MB, free: 1.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.2479, allocations: 8 kB / 437.8 MB, free: 1.113 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.33e-05/0.248, allocations: 111.1 kB / 437.9 MB, free: 1.004 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.248, allocations: 0 / 437.9 MB, free: 1.004 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002851/0.2483, allocations: 12 kB / 438 MB, free: 0.9922 MB / 334.1 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.529e-05/0.2484, allocations: 107.2 kB / 438.1 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001944/0.2486, allocations: 71.81 kB / 438.1 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2486, allocations: 0 / 438.1 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.975e-05/0.2486, allocations: 8 kB / 438.1 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004231/0.249, allocations: 59.86 kB / 438.2 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004127/0.2494, allocations: 238.2 kB / 438.4 MB, free: 484 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003744/0.2498, allocations: 0.7 MB / 439.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.417e-05/0.2498, allocations: 15.42 kB / 439.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2498, allocations: 0 / 439.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of Templates: time 0.002588/0.2524, allocations: 1.006 MB / 440.2 MB, free: 14.73 MB / 350.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins1/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: 6.578100098995492]