Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002002/0.002002, allocations: 107.1 kB / 20.44 MB, free: 1.195 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002656/0.002656, allocations: 216.2 kB / 23.73 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.474/1.474, allocations: 230.5 MB / 257.4 MB, free: 7.773 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002036/0.002036, allocations: 59.91 kB / 378.2 MB, free: 2.324 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2652, allocations: 53.41 MB / 431.6 MB, free: 6.512 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003347/0.2686, allocations: 1.621 MB / 433.3 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005346/0.2691, allocations: 167.4 kB / 433.4 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.2692, allocations: 4 kB / 433.4 MB, free: 4.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.513e-05/0.2693, allocations: 11.86 kB / 433.4 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.2694, allocations: 7.938 kB / 433.4 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002826/0.2697, allocations: 63.81 kB / 433.5 MB, free: 4.637 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000135/0.2698, allocations: 51.84 kB / 433.6 MB, free: 4.586 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.2699, allocations: 36 kB / 433.6 MB, free: 4.551 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.336e-05/0.27, allocations: 19.92 kB / 433.6 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.05e-05/0.27, allocations: 35.78 kB / 433.6 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.17e-05/0.27, allocations: 4 kB / 433.6 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.466e-05/0.2701, allocations: 4 kB / 433.7 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.089e-05/0.2701, allocations: 19.92 kB / 433.7 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.849e-05/0.2701, allocations: 23.81 kB / 433.7 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001649/0.2703, allocations: 87.3 kB / 433.8 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2703, allocations: 0 / 433.8 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2703, allocations: 0 / 433.8 MB, free: 4.363 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.73e-06/0.2703, allocations: 3.938 kB / 433.8 MB, free: 4.359 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.0004952/0.2708, allocations: 304.7 kB / 434.1 MB, free: 4.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.2708, allocations: 19.97 kB / 434.1 MB, free: 4.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.642e-05/0.2709, allocations: 8.891 kB / 434.1 MB, free: 4.004 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002697/0.2712, allocations: 138.4 kB / 434.2 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.733e-05/0.2712, allocations: 8.375 kB / 434.3 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.2712, allocations: 4.375 kB / 434.3 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004067/0.2716, allocations: 190.3 kB / 434.4 MB, free: 3.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.2716, allocations: 4.125 kB / 434.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.2716, allocations: 7.938 kB / 434.5 MB, free: 3.613 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.2716, allocations: 4 kB / 434.5 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001042/0.2717, allocations: 31.98 kB / 434.5 MB, free: 3.578 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003872/0.2721, allocations: 313.5 kB / 434.8 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001934/0.2723, allocations: 107.9 kB / 434.9 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.2724, allocations: 62.5 kB / 435 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.434e-05/0.2724, allocations: 4 kB / 435 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/0.2725, allocations: 38.5 kB / 435 MB, free: 2.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.2725, allocations: 0 / 435 MB, free: 2.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003643/0.2729, allocations: 133.8 kB / 435.1 MB, free: 2.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.558e-05/0.2729, allocations: 110.8 kB / 435.2 MB, free: 2.711 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.2731, allocations: 144.3 kB / 435.4 MB, free: 2.562 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.966e-05/0.2731, allocations: 29.95 kB / 435.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.085e-05/0.2732, allocations: 92.38 kB / 435.5 MB, free: 2.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.32e-05/0.2732, allocations: 4 kB / 435.5 MB, free: 2.426 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.542e-05/0.2732, allocations: 37.66 kB / 435.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.2734, allocations: 318.8 kB / 435.9 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.671e-05/0.2734, allocations: 12 kB / 435.9 MB, free: 2.051 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.2736, allocations: 89.36 kB / 436 MB, free: 1.93 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.2737, allocations: 101.3 kB / 436.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.2737, allocations: 0 / 436.1 MB, free: 1.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002146/0.2739, allocations: 129.3 kB / 436.2 MB, free: 1.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.2739, allocations: 4 kB / 436.2 MB, free: 1.66 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.2739, allocations: 4 kB / 436.2 MB, free: 1.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.274, allocations: 4 kB / 436.2 MB, free: 1.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.126e-05/0.274, allocations: 4 kB / 436.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.899e-06/0.274, allocations: 7.938 kB / 436.2 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.788e-05/0.2741, allocations: 7.984 kB / 436.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.2741, allocations: 8.344 kB / 436.2 MB, free: 1.625 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.0001227/0.2742, allocations: 133.7 kB / 436.3 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.2743, allocations: 81.58 kB / 436.4 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.511e-05/0.2744, allocations: 20.66 kB / 436.4 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.2744, allocations: 7.984 kB / 436.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2744, allocations: 0 / 436.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2744, allocations: 0 / 436.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002202/0.2746, allocations: 121.3 kB / 436.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.2746, allocations: 3.938 kB / 436.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.975e-05/0.2746, allocations: 11.98 kB / 436.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.205e-06/0.2746, allocations: 7.938 kB / 436.6 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.2747, allocations: 4 kB / 436.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.2747, allocations: 0 / 436.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2747, allocations: 0 / 436.6 MB, free: 1.191 MB / 334.1 MB [/var/lib/jenkins/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/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/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.0004296/0.2751, allocations: 341.2 kB / 436.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.645e-05/0.2751, allocations: 23.81 kB / 437 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.2752, allocations: 8 kB / 437 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.93e-05/0.2753, allocations: 7.984 kB / 437 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.53e-05/0.2753, allocations: 7.938 kB / 437 MB, free: 0.793 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.2753, allocations: 4 kB / 437 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.085e-05/0.2754, allocations: 105.7 kB / 437.1 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2754, allocations: 7.938 kB / 437.1 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003038/0.2757, allocations: 12 kB / 437.1 MB, free: 0.668 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.0001183/0.2758, allocations: 106.2 kB / 437.2 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001957/0.276, allocations: 71.84 kB / 437.3 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.276, allocations: 0 / 437.3 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.371e-05/0.276, allocations: 7.938 kB / 437.3 MB, free: 492 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000443/0.2765, allocations: 57.64 kB / 437.3 MB, free: 440 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004394/0.2769, allocations: 203.9 kB / 437.5 MB, free: 204 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.277, allocations: 95.94 kB / 437.6 MB, free: 88 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.382e-05/0.2771, allocations: 8.438 kB / 437.6 MB, free: 80 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.317e-05/0.2771, allocations: 15.44 kB / 437.7 MB, free: 64 kB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2771, allocations: 0 / 437.7 MB, free: 64 kB / 334.1 MB Notification: Performance of Templates: time 0.003598/0.2807, allocations: 0.8669 MB / 438.5 MB, free: 15.21 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.449725341051817]