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.0008279/0.0008279, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 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.004043/0.004043, allocations: 160.2 kB / 24.7 MB, free: 9.441 MB / 18.57 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 0.9008/0.9008, allocations: 177 MB / 204.9 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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 1.262e-06/1.262e-06, allocations: 0 / 325.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.688e-05/1.814e-05, allocations: 7.266 kB / 325.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.001878/0.001896, allocations: 1.63 MB / 327.4 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003406/0.002237, allocations: 159.5 kB / 327.6 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.823e-05/0.002315, allocations: 0 / 327.6 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.687e-05/0.002362, allocations: 11.88 kB / 327.6 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000125/0.002487, allocations: 15.86 kB / 327.6 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.002686, allocations: 51.81 kB / 327.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.246e-05/0.002778, allocations: 63.78 kB / 327.7 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.247e-05/0.002871, allocations: 28.14 kB / 327.7 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.962e-05/0.00292, allocations: 35.91 kB / 327.8 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.254e-05/0.002953, allocations: 23.91 kB / 327.8 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.183e-05/0.002975, allocations: 4 kB / 327.8 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.107e-06/0.002984, allocations: 8 kB / 327.8 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.261e-05/0.003026, allocations: 23.91 kB / 327.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.303e-05/0.003049, allocations: 15.94 kB / 327.8 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.94e-05/0.003149, allocations: 79.73 kB / 327.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.003151, allocations: 4 kB / 327.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.61e-07/0.003152, allocations: 0 / 327.9 MB, free: 13.2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.476e-06/0.003155, allocations: 0 / 327.9 MB, free: 13.2 MB / 298.7 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.0004384/0.003594, allocations: 306 kB / 328.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.003627, allocations: 11.98 kB / 328.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.777e-05/0.003655, allocations: 12.84 kB / 328.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001545/0.003809, allocations: 149.5 kB / 328.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.565e-05/0.003825, allocations: 384 / 328.4 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.003836, allocations: 12.38 kB / 328.4 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002367/0.004073, allocations: 189.1 kB / 328.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.00408, allocations: 192 / 328.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.004088, allocations: 4.375 kB / 328.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.004094, allocations: 4.359 kB / 328.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.926e-05/0.004153, allocations: 47.86 kB / 328.6 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002366/0.00439, allocations: 305.5 kB / 328.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001181/0.004508, allocations: 107.8 kB / 329.1 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.554e-05/0.004564, allocations: 62.61 kB / 329.1 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.543e-05/0.004579, allocations: 0 / 329.1 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.162e-05/0.004601, allocations: 38.56 kB / 329.1 MB, free: 11.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 9.32e-07/0.004602, allocations: 0 / 329.1 MB, free: 11.81 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001953/0.004797, allocations: 133.4 kB / 329.3 MB, free: 11.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.004842, allocations: 114.8 kB / 329.4 MB, free: 11.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.265e-05/0.004914, allocations: 133.8 kB / 329.5 MB, free: 11.4 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.134e-05/0.004926, allocations: 29.95 kB / 329.6 MB, free: 11.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.557e-05/0.004961, allocations: 104.3 kB / 329.7 MB, free: 11.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.885e-06/0.004969, allocations: 3.938 kB / 329.7 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.549e-05/0.004995, allocations: 25.67 kB / 329.7 MB, free: 11.22 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.479e-05/0.00506, allocations: 314.8 kB / 330 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.39e-05/0.005073, allocations: 4 kB / 330 MB, free: 10.9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.734e-05/0.005091, allocations: 17.72 kB / 330 MB, free: 10.88 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.03e-05/0.005121, allocations: 25.7 kB / 330 MB, free: 10.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.005122, allocations: 64 / 330 MB, free: 10.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.193e-05/0.005174, allocations: 53.62 kB / 330.1 MB, free: 10.79 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.093e-05/0.005185, allocations: 7.938 kB / 330.1 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.156e-06/0.005188, allocations: 0 / 330.1 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.598e-06/0.005198, allocations: 0 / 330.1 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.854e-06/0.005206, allocations: 7.938 kB / 330.1 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.00521, allocations: 0 / 330.1 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.38e-05/0.005223, allocations: 0 / 330.1 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.48e-06/0.005229, allocations: 8 kB / 330.1 MB, free: 10.76 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (step.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.608e-05/0.005285, allocations: 125.8 kB / 330.2 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.493e-05/0.00536, allocations: 81.95 kB / 330.3 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.505e-05/0.005385, allocations: 16.78 kB / 330.3 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.005387, allocations: 0 / 330.3 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.005391, allocations: 4.094 kB / 330.3 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.005396, allocations: 7.922 kB / 330.3 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001198/0.005515, allocations: 121.3 kB / 330.5 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.005516, allocations: 0 / 330.5 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.282e-06/0.005523, allocations: 7.938 kB / 330.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.005525, allocations: 3.984 kB / 330.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.842e-06/0.005532, allocations: 7.938 kB / 330.5 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.005533, allocations: 8 kB / 330.5 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.005534, allocations: 0 / 330.5 MB, free: 10.34 MB / 298.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:337:7-337: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:347:7-347: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:351:7-351:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:202:5-202:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:113:7-113:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7979:5-7979: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.0001977/0.005731, allocations: 328.5 kB / 330.8 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.264e-05/0.005764, allocations: 27.81 kB / 330.8 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.005775, allocations: 8 kB / 330.8 MB, free: 9.965 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.248e-05/0.005827, allocations: 7.938 kB / 330.9 MB, free: 9.957 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.083e-05/0.005848, allocations: 7.969 kB / 330.9 MB, free: 9.949 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.005851, allocations: 8 kB / 330.9 MB, free: 9.941 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.273e-05/0.005894, allocations: 106.1 kB / 331 MB, free: 9.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005894, allocations: 0 / 331 MB, free: 9.84 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001601/0.006054, allocations: 8 kB / 331 MB, free: 9.832 MB / 298.7 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 6.142e-05/0.006116, allocations: 103.2 kB / 331.1 MB, free: 9.719 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.161e-05/0.006197, allocations: 43.92 kB / 331.1 MB, free: 9.676 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.006198, allocations: 0 / 331.1 MB, free: 9.676 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.653e-05/0.006215, allocations: 16.06 kB / 331.1 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002643/0.006479, allocations: 48 kB / 331.2 MB, free: 9.613 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002509/0.00673, allocations: 248.1 kB / 331.4 MB, free: 9.332 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003075/0.007038, allocations: 95.25 kB / 331.5 MB, free: 9.219 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.201e-05/0.00706, allocations: 12.5 kB / 331.5 MB, free: 9.207 MB / 298.7 MB Notification: Performance of SimCode: time 4.21e-07/0.00706, allocations: 0 / 331.5 MB, free: 9.207 MB / 298.7 MB Notification: Performance of Templates: time 0.001346/0.008406, allocations: 0.9196 MB / 332.5 MB, free: 8.289 MB / 298.7 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.022442548535764]