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.001385/0.001385, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.001511/0.001511, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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 1.011/1.011, allocations: 177 MB / 204.8 MB, free: 5.59 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.743e-06/1.743e-06, allocations: 0 / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.235e-05/2.41e-05, allocations: 5.266 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002621/0.002645, allocations: 1.669 MB / 274.6 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003758/0.003021, allocations: 175.3 kB / 274.8 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.34e-05/0.003104, allocations: 7.938 kB / 274.8 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 4.978e-05/0.003154, allocations: 3.938 kB / 274.8 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.003291, allocations: 15.86 kB / 274.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000228/0.003519, allocations: 51.77 kB / 274.8 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 9.861e-05/0.003617, allocations: 55.84 kB / 274.9 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.003724, allocations: 32.14 kB / 274.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.234e-05/0.003776, allocations: 35.91 kB / 275 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.621e-05/0.003812, allocations: 23.89 kB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.998e-05/0.003832, allocations: 8 kB / 275 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.069e-05/0.003843, allocations: 4 kB / 275 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.667e-05/0.00389, allocations: 19.92 kB / 275 MB, free: 15.35 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.921e-05/0.003919, allocations: 23.91 kB / 275 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001128/0.004032, allocations: 51.81 kB / 275.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.004034, allocations: 4 kB / 275.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.004034, allocations: 0 / 275.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.004038, allocations: 3.938 kB / 275.1 MB, free: 15.27 MB / 266.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.0003946/0.004433, allocations: 416.2 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.004473, allocations: 11.98 kB / 275.5 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.891e-05/0.004512, allocations: 12.89 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.004662, allocations: 152.4 kB / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.609e-05/0.004678, allocations: 4.375 kB / 275.7 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.004693, allocations: 8.375 kB / 275.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002731/0.004966, allocations: 189.1 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.004972, allocations: 192 / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.206e-05/0.004984, allocations: 4.375 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.253e-06/0.004992, allocations: 4.375 kB / 275.9 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.05e-05/0.005032, allocations: 27.92 kB / 275.9 MB, free: 14.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003023/0.005334, allocations: 410.3 kB / 276.3 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000126/0.00546, allocations: 125 kB / 276.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.16e-05/0.005512, allocations: 55.16 kB / 276.5 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.005533, allocations: 4.188 kB / 276.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.007e-05/0.005553, allocations: 45.33 kB / 276.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 9.01e-07/0.005554, allocations: 0 / 276.5 MB, free: 13.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0001948/0.005749, allocations: 109.4 kB / 276.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.005799, allocations: 110.8 kB / 276.7 MB, free: 13.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.206e-05/0.005891, allocations: 197 kB / 276.9 MB, free: 13.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.063e-05/0.005902, allocations: 33.69 kB / 277 MB, free: 13.14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.852e-05/0.005951, allocations: 135.4 kB / 277.1 MB, free: 13 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.317e-06/0.00596, allocations: 3.938 kB / 277.1 MB, free: 12.99 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.957e-05/0.005989, allocations: 31.33 kB / 277.1 MB, free: 12.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.006097, allocations: 0.4884 MB / 277.6 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.12e-05/0.006109, allocations: 4 kB / 277.6 MB, free: 12.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.475e-05/0.006123, allocations: 15.38 kB / 277.6 MB, free: 12.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.497e-05/0.006148, allocations: 27.31 kB / 277.7 MB, free: 12.39 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.00615, allocations: 0 / 277.7 MB, free: 12.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.541e-05/0.006195, allocations: 49.69 kB / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.226e-05/0.006208, allocations: 7.938 kB / 277.7 MB, free: 12.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.006213, allocations: 4 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.099e-05/0.006224, allocations: 3.938 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.468e-06/0.006233, allocations: 0 / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.006238, allocations: 0 / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.341e-05/0.006262, allocations: 4 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.19e-06/0.006267, allocations: 0 / 277.7 MB, free: 12.32 MB / 266.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 6.621e-05/0.006333, allocations: 164.6 kB / 277.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.144e-05/0.006414, allocations: 77.58 kB / 278 MB, free: 12.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.25e-05/0.006447, allocations: 24.78 kB / 278 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.00645, allocations: 4 kB / 278 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.006453, allocations: 0 / 278 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.006456, allocations: 0 / 278 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001253/0.006581, allocations: 136.6 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.006582, allocations: 0 / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.266e-06/0.006591, allocations: 7.938 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.006592, allocations: 0 / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.006601, allocations: 8 kB / 278.1 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.006603, allocations: 3.938 kB / 278.2 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.006604, allocations: 0 / 278.2 MB, free: 11.84 MB / 266.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:8020:5-8020: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.0002267/0.00683, allocations: 428.5 kB / 278.6 MB, free: 11.4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.962e-05/0.00686, allocations: 19.88 kB / 278.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.819e-06/0.00687, allocations: 4 kB / 278.6 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.435e-05/0.006924, allocations: 11.92 kB / 278.6 MB, free: 11.37 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.905e-05/0.006953, allocations: 7.938 kB / 278.6 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.006958, allocations: 4 kB / 278.6 MB, free: 11.36 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.485e-05/0.007003, allocations: 139.2 kB / 278.8 MB, free: 11.22 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007003, allocations: 4 kB / 278.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001585/0.007162, allocations: 11.95 kB / 278.8 MB, free: 11.2 MB / 266.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 5.953e-05/0.007221, allocations: 103.2 kB / 278.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.031e-05/0.007302, allocations: 31.62 kB / 278.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.007303, allocations: 0 / 278.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.423e-05/0.007317, allocations: 15.67 kB / 278.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.007596, allocations: 46.64 kB / 279 MB, free: 11 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002743/0.00787, allocations: 223 kB / 279.2 MB, free: 10.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.586e-05/0.007916, allocations: 71.33 kB / 279.3 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.295e-05/0.007929, allocations: 0 / 279.3 MB, free: 10.65 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.888e-05/0.007958, allocations: 12.5 kB / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.007959, allocations: 0 / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of Templates: time 0.002303/0.01026, allocations: 0.7705 MB / 280 MB, free: 9.879 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.85405712435022]