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.001405/0.001405, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.001457/0.001457, allocations: 217 kB / 24.5 MB, free: 4.133 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.5/1.5, allocations: 230.5 MB / 258.1 MB, free: 8.027 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.001986/0.001986, allocations: 59.84 kB / 379 MB, free: 2.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2532, allocations: 53.42 MB / 432.4 MB, free: 6.789 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003054/0.2562, allocations: 1.624 MB / 434.1 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005001/0.2567, allocations: 183.3 kB / 434.2 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.317e-05/0.2568, allocations: 0 / 434.2 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.116e-05/0.2569, allocations: 11.86 kB / 434.3 MB, free: 4.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001204/0.257, allocations: 7.938 kB / 434.3 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002483/0.2573, allocations: 55.81 kB / 434.3 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001168/0.2574, allocations: 59.84 kB / 434.4 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.2575, allocations: 28.2 kB / 434.4 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.115e-05/0.2575, allocations: 19.92 kB / 434.4 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.427e-05/0.2576, allocations: 39.78 kB / 434.5 MB, free: 4.762 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.485e-05/0.2576, allocations: 4 kB / 434.5 MB, free: 4.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.272e-05/0.2576, allocations: 12 kB / 434.5 MB, free: 4.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.925e-05/0.2577, allocations: 19.86 kB / 434.5 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.914e-05/0.2577, allocations: 31.81 kB / 434.5 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000147/0.2579, allocations: 81.12 kB / 434.6 MB, free: 4.621 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.2579, allocations: 0 / 434.6 MB, free: 4.621 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2579, allocations: 0 / 434.6 MB, free: 4.621 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.2579, allocations: 0 / 434.6 MB, free: 4.621 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.2584, allocations: 317.6 kB / 434.9 MB, free: 4.281 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.2584, allocations: 8.031 kB / 434.9 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.693e-05/0.2584, allocations: 12.84 kB / 434.9 MB, free: 4.262 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.2587, allocations: 138.4 kB / 435.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.2587, allocations: 8.375 kB / 435.1 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.77e-05/0.2588, allocations: 4.375 kB / 435.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003851/0.2591, allocations: 192.7 kB / 435.3 MB, free: 3.883 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.2591, allocations: 4.125 kB / 435.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.2592, allocations: 11.88 kB / 435.3 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-06/0.2592, allocations: 4 kB / 435.3 MB, free: 3.863 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001094/0.2593, allocations: 31.98 kB / 435.3 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004367/0.2597, allocations: 348.9 kB / 435.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.2599, allocations: 111.8 kB / 435.8 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.734e-05/0.26, allocations: 50.62 kB / 435.8 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.26, allocations: 4 kB / 435.8 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.2601, allocations: 46.48 kB / 435.9 MB, free: 3.188 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.362e-06/0.2601, allocations: 0 / 435.9 MB, free: 3.188 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003618/0.2604, allocations: 129.5 kB / 436 MB, free: 3.055 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.435e-05/0.2605, allocations: 111.2 kB / 436.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.2606, allocations: 133.8 kB / 436.2 MB, free: 2.781 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.003e-05/0.2607, allocations: 33.89 kB / 436.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.658e-05/0.2607, allocations: 92.38 kB / 436.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.2607, allocations: 11.98 kB / 436.4 MB, free: 2.633 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.057e-05/0.2608, allocations: 29.67 kB / 436.4 MB, free: 2.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.2609, allocations: 322.8 kB / 436.7 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.631e-05/0.261, allocations: 15.98 kB / 436.7 MB, free: 2.258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.118e-05/0.2611, allocations: 77.44 kB / 436.8 MB, free: 2.148 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.2612, allocations: 113.2 kB / 436.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2612, allocations: 0 / 436.9 MB, free: 2.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002077/0.2614, allocations: 121.4 kB / 437 MB, free: 1.879 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.2614, allocations: 8 kB / 437 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.2614, allocations: 0 / 437 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.2615, allocations: 4 kB / 437 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.271e-05/0.2615, allocations: 7.938 kB / 437.1 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.2615, allocations: 11.97 kB / 437.1 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6e-05/0.2616, allocations: 16.3 kB / 437.1 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.2616, allocations: 7.938 kB / 437.1 MB, free: 1.824 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.0001125/0.2617, allocations: 133.7 kB / 437.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.2618, allocations: 85.56 kB / 437.3 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.388e-05/0.2619, allocations: 16.7 kB / 437.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.2619, allocations: 4 kB / 437.3 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.2619, allocations: 0 / 437.3 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2619, allocations: 0 / 437.3 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002779/0.2622, allocations: 172.6 kB / 437.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.2622, allocations: 0 / 437.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.725e-05/0.2622, allocations: 4 kB / 437.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2622, allocations: 0 / 437.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.2622, allocations: 4 kB / 437.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.757e-06/0.2622, allocations: 7.938 kB / 437.5 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2622, allocations: 0 / 437.5 MB, free: 1.344 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.0003982/0.2626, allocations: 335.9 kB / 437.8 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.811e-05/0.2627, allocations: 31.89 kB / 437.9 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.2627, allocations: 7.938 kB / 437.9 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.581e-05/0.2628, allocations: 4 kB / 437.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.527e-05/0.2628, allocations: 0 / 437.9 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.834e-06/0.2628, allocations: 4 kB / 437.9 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.946e-05/0.2629, allocations: 119.1 kB / 438 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2629, allocations: 0 / 438 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002923/0.2632, allocations: 12 kB / 438 MB, free: 0.8242 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.0001177/0.2633, allocations: 102.5 kB / 438.1 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002043/0.2635, allocations: 76.34 kB / 438.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2635, allocations: 0 / 438.2 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 2.991e-05/0.2635, allocations: 4 kB / 438.2 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004453/0.264, allocations: 62.62 kB / 438.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004776/0.2645, allocations: 229.4 kB / 438.5 MB, free: 328 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.2648, allocations: 0.712 MB / 439.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.77e-05/0.2649, allocations: 11.44 kB / 439.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2649, allocations: 0 / 439.2 MB, free: 15.57 MB / 350.1 MB Notification: Performance of Templates: time 0.00299/0.2679, allocations: 0.9925 MB / 440.2 MB, free: 14.57 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/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_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: 6.917846604017541]