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.001347/0.001347, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001478/0.001478, allocations: 210 kB / 24.48 MB, free: 3.938 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.432/1.432, allocations: 230.6 MB / 258.2 MB, free: 7.785 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.001636/0.001636, allocations: 51.92 kB / 379 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2406, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003419/0.244, allocations: 1.617 MB / 433.9 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005281/0.2445, allocations: 167.4 kB / 434.1 MB, free: 4.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.921e-05/0.2446, allocations: 4 kB / 434.1 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.413e-05/0.2447, allocations: 15.81 kB / 434.1 MB, free: 4.918 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001594/0.2448, allocations: 11.94 kB / 434.1 MB, free: 4.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002974/0.2451, allocations: 55.8 kB / 434.2 MB, free: 4.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000141/0.2453, allocations: 59.84 kB / 434.3 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.2454, allocations: 28 kB / 434.3 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.961e-05/0.2455, allocations: 27.86 kB / 434.3 MB, free: 4.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.256e-05/0.2455, allocations: 27.84 kB / 434.3 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.399e-05/0.2455, allocations: 4 kB / 434.3 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.235e-05/0.2456, allocations: 8 kB / 434.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.873e-05/0.2456, allocations: 19.92 kB / 434.4 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.139e-05/0.2457, allocations: 31.8 kB / 434.4 MB, free: 4.648 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001763/0.2459, allocations: 70.81 kB / 434.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.2459, allocations: 0 / 434.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2459, allocations: 0 / 434.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.2459, allocations: 0 / 434.5 MB, free: 4.582 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.0005962/0.2465, allocations: 329.5 kB / 434.8 MB, free: 4.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.2465, allocations: 8.031 kB / 434.8 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.861e-05/0.2466, allocations: 8.891 kB / 434.8 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003266/0.2469, allocations: 142.4 kB / 434.9 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.652e-05/0.2469, allocations: 4.375 kB / 434.9 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.92e-05/0.2469, allocations: 16.38 kB / 435 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004241/0.2473, allocations: 178.4 kB / 435.1 MB, free: 3.836 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.2474, allocations: 4.125 kB / 435.1 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.617e-05/0.2474, allocations: 7.938 kB / 435.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.2474, allocations: 0 / 435.2 MB, free: 3.824 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001067/0.2475, allocations: 35.98 kB / 435.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004151/0.2479, allocations: 309.5 kB / 435.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.2481, allocations: 111.8 kB / 435.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.2482, allocations: 58.62 kB / 435.7 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.2482, allocations: 3.984 kB / 435.7 MB, free: 3.242 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.2483, allocations: 42.5 kB / 435.7 MB, free: 3.191 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.704e-06/0.2483, allocations: 0 / 435.7 MB, free: 3.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003612/0.2486, allocations: 129.4 kB / 435.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.663e-05/0.2487, allocations: 110.8 kB / 435.9 MB, free: 2.926 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.2489, allocations: 140.7 kB / 436.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.2489, allocations: 33.7 kB / 436.1 MB, free: 2.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.595e-05/0.249, allocations: 92.38 kB / 436.2 MB, free: 2.645 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.388e-05/0.249, allocations: 3.984 kB / 436.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.252e-05/0.249, allocations: 33.67 kB / 436.2 MB, free: 2.602 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001651/0.2492, allocations: 322.8 kB / 436.5 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.993e-05/0.2493, allocations: 19.92 kB / 436.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.75e-05/0.2493, allocations: 81.44 kB / 436.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001444/0.2495, allocations: 109.2 kB / 436.8 MB, free: 2.004 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.2495, allocations: 0 / 436.8 MB, free: 2.004 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002051/0.2497, allocations: 121.3 kB / 436.9 MB, free: 1.879 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.2497, allocations: 8 kB / 436.9 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2497, allocations: 0 / 436.9 MB, free: 1.871 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.2497, allocations: 4 kB / 436.9 MB, free: 1.867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.76e-05/0.2498, allocations: 11.98 kB / 436.9 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.2498, allocations: 4 kB / 436.9 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.471e-05/0.2498, allocations: 7.938 kB / 436.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.2498, allocations: 4.344 kB / 436.9 MB, free: 1.84 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.0001285/0.25, allocations: 141.7 kB / 437 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001456/0.2501, allocations: 85.58 kB / 437.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.804e-05/0.2502, allocations: 16.7 kB / 437.1 MB, free: 1.582 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2502, allocations: 4 kB / 437.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2502, allocations: 0 / 437.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.2502, allocations: 0 / 437.2 MB, free: 1.578 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002129/0.2504, allocations: 121.7 kB / 437.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.193e-06/0.2504, allocations: 7.938 kB / 437.3 MB, free: 1.422 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.569e-05/0.2504, allocations: 4 kB / 437.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.2504, allocations: 8 kB / 437.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.2504, allocations: 0 / 437.3 MB, free: 1.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.2504, allocations: 11.88 kB / 437.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.2504, allocations: 4 kB / 437.3 MB, free: 1.395 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.0004198/0.2509, allocations: 345.1 kB / 437.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.553e-05/0.2509, allocations: 31.8 kB / 437.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.604e-05/0.2509, allocations: 0 / 437.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.251, allocations: 8 kB / 437.7 MB, free: 1 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.573e-05/0.2511, allocations: 4 kB / 437.7 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.2511, allocations: 7.938 kB / 437.7 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.744e-05/0.2512, allocations: 114.1 kB / 437.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2512, allocations: 0 / 437.8 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000295/0.2515, allocations: 8 kB / 437.8 MB, free: 0.8711 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.0001236/0.2516, allocations: 99.25 kB / 437.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001961/0.2518, allocations: 72.06 kB / 438 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2518, allocations: 0 / 438 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.463e-05/0.2518, allocations: 11.94 kB / 438 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004573/0.2523, allocations: 57.94 kB / 438 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004794/0.2528, allocations: 236.8 kB / 438.3 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.2529, allocations: 95.94 kB / 438.4 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.728e-05/0.2529, allocations: 15.44 kB / 438.4 MB, free: 240 kB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2529, allocations: 3.938 kB / 438.4 MB, free: 236 kB / 334.1 MB Notification: Performance of Templates: time 0.002821/0.2557, allocations: 1.001 MB / 439.4 MB, free: 15.22 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.7227071463130414]