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.001349/0.001349, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001422/0.001422, allocations: 187.3 kB / 24.45 MB, free: 3.961 MB / 14.72 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 1.441/1.441, allocations: 225.7 MB / 253.3 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001779/0.001779, allocations: 55.92 kB / 371.7 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2597, allocations: 52.16 MB / 423.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003029/0.2627, allocations: 1.62 MB / 425.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004567/0.2632, allocations: 167.5 kB / 425.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.981e-05/0.2633, allocations: 4 kB / 425.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.395e-05/0.2633, allocations: 11.86 kB / 425.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001195/0.2634, allocations: 11.88 kB / 425.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.2637, allocations: 47.89 kB / 425.7 MB, free: 12.62 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.2638, allocations: 59.83 kB / 425.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.2639, allocations: 28.02 kB / 425.8 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.237e-05/0.2639, allocations: 23.86 kB / 425.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.897e-05/0.264, allocations: 31.84 kB / 425.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.929e-05/0.264, allocations: 4 kB / 425.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.328e-05/0.264, allocations: 8 kB / 425.8 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.193e-05/0.2641, allocations: 19.92 kB / 425.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.655e-05/0.2641, allocations: 31.8 kB / 425.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001417/0.2643, allocations: 78.73 kB / 426 MB, free: 12.35 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.2643, allocations: 0 / 426 MB, free: 12.35 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2643, allocations: 4 kB / 426 MB, free: 12.35 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.2643, allocations: 0 / 426 MB, free: 12.35 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.0004702/0.2647, allocations: 308.8 kB / 426.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.765e-05/0.2648, allocations: 11.97 kB / 426.3 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.064e-05/0.2648, allocations: 16.84 kB / 426.3 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.2651, allocations: 150.3 kB / 426.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.183e-05/0.2651, allocations: 8.375 kB / 426.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.333e-05/0.2651, allocations: 4.375 kB / 426.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000383/0.2655, allocations: 193.6 kB / 426.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.2655, allocations: 4.188 kB / 426.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.2655, allocations: 7.938 kB / 426.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2655, allocations: 0 / 426.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001077/0.2656, allocations: 39.92 kB / 426.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000378/0.266, allocations: 309.5 kB / 427 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001854/0.2662, allocations: 103.6 kB / 427.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001236/0.2663, allocations: 70.69 kB / 427.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.478e-05/0.2663, allocations: 4 kB / 427.2 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.771e-05/0.2664, allocations: 30.56 kB / 427.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.263e-06/0.2664, allocations: 0 / 427.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003487/0.2667, allocations: 133.7 kB / 427.3 MB, free: 10.82 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.535e-05/0.2668, allocations: 110.8 kB / 427.4 MB, free: 10.69 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.2669, allocations: 145.8 kB / 427.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.267, allocations: 29.7 kB / 427.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.392e-05/0.267, allocations: 84.42 kB / 427.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.2671, allocations: 11.95 kB / 427.7 MB, free: 10.4 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.022e-05/0.2671, allocations: 29.7 kB / 427.7 MB, free: 10.37 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001538/0.2673, allocations: 322.8 kB / 428 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.383e-05/0.2673, allocations: 11.94 kB / 428 MB, free: 10.03 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001021/0.2674, allocations: 85.38 kB / 428.1 MB, free: 9.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000148/0.2675, allocations: 105.3 kB / 428.2 MB, free: 9.777 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/0.2676, allocations: 4 kB / 428.2 MB, free: 9.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002045/0.2678, allocations: 125.3 kB / 428.4 MB, free: 9.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.2678, allocations: 8 kB / 428.4 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.95e-06/0.2678, allocations: 0 / 428.4 MB, free: 9.637 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.2678, allocations: 4 kB / 428.4 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.281e-05/0.2678, allocations: 7.938 kB / 428.4 MB, free: 9.625 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.2678, allocations: 4.344 kB / 428.4 MB, free: 9.621 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.636e-05/0.2679, allocations: 11.95 kB / 428.4 MB, free: 9.609 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.375e-05/0.2679, allocations: 12 kB / 428.4 MB, free: 9.598 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.0001218/0.268, allocations: 141.3 kB / 428.5 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001527/0.2682, allocations: 78.02 kB / 428.6 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.12e-05/0.2682, allocations: 16.72 kB / 428.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2682, allocations: 96 / 428.6 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.2682, allocations: 3.938 kB / 428.6 MB, free: 9.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.2682, allocations: 7.984 kB / 428.7 MB, free: 9.34 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002131/0.2684, allocations: 117.3 kB / 428.8 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.2684, allocations: 7.938 kB / 428.8 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.679e-05/0.2685, allocations: 11.92 kB / 428.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.2685, allocations: 0 / 428.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.2685, allocations: 0 / 428.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.2685, allocations: 4 kB / 428.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.2685, allocations: 4 kB / 428.8 MB, free: 9.168 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:8018:5-8018: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.0004047/0.2689, allocations: 344.3 kB / 429.1 MB, free: 8.812 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.231e-05/0.2689, allocations: 31.81 kB / 429.2 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.269, allocations: 4 kB / 429.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.984e-05/0.2691, allocations: 4 kB / 429.2 MB, free: 8.773 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.663e-05/0.2691, allocations: 3.984 kB / 429.2 MB, free: 8.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.2691, allocations: 4 kB / 429.2 MB, free: 8.766 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.833e-05/0.2692, allocations: 106.2 kB / 429.3 MB, free: 8.664 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2692, allocations: 0 / 429.3 MB, free: 8.664 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002978/0.2695, allocations: 12 kB / 429.3 MB, free: 8.652 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 0.000119/0.2696, allocations: 111.2 kB / 429.4 MB, free: 8.535 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001817/0.2698, allocations: 63.8 kB / 429.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2698, allocations: 0 / 429.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.302e-05/0.2698, allocations: 11.98 kB / 429.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004514/0.2703, allocations: 47.89 kB / 429.5 MB, free: 8.414 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004309/0.2707, allocations: 234.1 kB / 429.7 MB, free: 8.148 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001083/0.2708, allocations: 95.31 kB / 429.8 MB, free: 8.035 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.197e-05/0.2708, allocations: 11.44 kB / 429.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2708, allocations: 288 / 429.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of Templates: time 0.002708/0.2735, allocations: 0.9964 MB / 430.9 MB, free: 7.027 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.726192262023687]