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.0007706/0.0007706, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.003104/0.003104, allocations: 163.1 kB / 24.7 MB, free: 8.891 MB / 18.57 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 0.8661/0.8661, allocations: 177.1 MB / 205 MB, free: 5.766 MB / 186.7 MB " [Timeout remaining time 179] 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 1.383e-06/1.383e-06, allocations: 0 / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.653e-05/2.791e-05, allocations: 6.281 kB / 325.8 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002101/0.002128, allocations: 1.633 MB / 327.5 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003483/0.002477, allocations: 167.4 kB / 327.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.077e-05/0.002558, allocations: 3.938 kB / 327.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 4.483e-05/0.002602, allocations: 3.938 kB / 327.6 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001213/0.002724, allocations: 15.92 kB / 327.6 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002063/0.00293, allocations: 55.69 kB / 327.7 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001008/0.003031, allocations: 63.84 kB / 327.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.003131, allocations: 24.16 kB / 327.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.199e-05/0.003183, allocations: 39.89 kB / 327.8 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.468e-05/0.003218, allocations: 19.97 kB / 327.8 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.199e-05/0.00324, allocations: 4 kB / 327.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.003e-05/0.00325, allocations: 4 kB / 327.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.724e-05/0.003297, allocations: 27.91 kB / 327.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.355e-05/0.003321, allocations: 15.92 kB / 327.9 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.003442, allocations: 83.69 kB / 328 MB, free: 13.28 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.003445, allocations: 0 / 328 MB, free: 13.28 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.724e-06/0.003447, allocations: 0 / 328 MB, free: 13.28 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.003451, allocations: 0 / 328 MB, free: 13.28 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.0003736/0.003825, allocations: 313.2 kB / 328.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.462e-05/0.003859, allocations: 12.03 kB / 328.3 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.243e-05/0.003892, allocations: 12.84 kB / 328.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.004077, allocations: 137.6 kB / 328.4 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.004096, allocations: 4.375 kB / 328.4 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.004109, allocations: 16.38 kB / 328.5 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002921/0.004401, allocations: 190.2 kB / 328.7 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.004411, allocations: 4.125 kB / 328.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.267e-06/0.00442, allocations: 384 / 328.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.004426, allocations: 4.375 kB / 328.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.153e-05/0.004498, allocations: 39.92 kB / 328.7 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002939/0.004792, allocations: 305.5 kB / 329 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.004919, allocations: 115.8 kB / 329.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.873e-05/0.004978, allocations: 50.62 kB / 329.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.005, allocations: 4 kB / 329.2 MB, free: 11.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.005022, allocations: 42.5 kB / 329.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.005023, allocations: 0 / 329.2 MB, free: 11.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002276/0.005251, allocations: 133.4 kB / 329.3 MB, free: 11.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.664e-05/0.005307, allocations: 110.8 kB / 329.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.886e-05/0.005396, allocations: 141.4 kB / 329.6 MB, free: 11.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.191e-05/0.005408, allocations: 33.95 kB / 329.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.552e-05/0.005453, allocations: 88.38 kB / 329.7 MB, free: 11.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.091e-05/0.005464, allocations: 7.938 kB / 329.7 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.104e-05/0.005495, allocations: 21.66 kB / 329.7 MB, free: 11.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.521e-05/0.005571, allocations: 318.8 kB / 330 MB, free: 11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.22e-05/0.005593, allocations: 4 kB / 330 MB, free: 10.99 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.029e-05/0.005613, allocations: 21.7 kB / 330.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.46e-05/0.005648, allocations: 21.66 kB / 330.1 MB, free: 10.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.005649, allocations: 4.062 kB / 330.1 MB, free: 10.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.921e-05/0.005709, allocations: 45.69 kB / 330.1 MB, free: 10.88 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.005723, allocations: 11.94 kB / 330.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.005729, allocations: 0 / 330.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.005744, allocations: 0 / 330.1 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.298e-05/0.005757, allocations: 3.938 kB / 330.2 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.005762, allocations: 0 / 330.2 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.903e-05/0.005781, allocations: 4.375 kB / 330.2 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.714e-06/0.005789, allocations: 3.984 kB / 330.2 MB, free: 10.86 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 7.139e-05/0.00586, allocations: 125.9 kB / 330.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.568e-05/0.005946, allocations: 89.45 kB / 330.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.843e-05/0.005974, allocations: 16.72 kB / 330.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.005978, allocations: 7.984 kB / 330.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.005983, allocations: 3.984 kB / 330.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.005987, allocations: 0 / 330.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001379/0.006125, allocations: 125.2 kB / 330.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.006126, allocations: 4 kB / 330.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.794e-06/0.006134, allocations: 3.984 kB / 330.5 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.006137, allocations: 4 kB / 330.5 MB, free: 10.44 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/0.006147, allocations: 7.938 kB / 330.5 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.006148, allocations: 4 kB / 330.5 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.006151, allocations: 8 kB / 330.6 MB, free: 10.42 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.0005482/0.0067, allocations: 328.5 kB / 330.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.919e-05/0.006739, allocations: 23.88 kB / 330.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.168e-05/0.00675, allocations: 0 / 330.9 MB, free: 10.06 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.856e-05/0.006809, allocations: 15.92 kB / 330.9 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.557e-05/0.006835, allocations: 0 / 330.9 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.839e-06/0.006839, allocations: 8 kB / 330.9 MB, free: 10.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.797e-05/0.006887, allocations: 103.9 kB / 331 MB, free: 9.934 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.006887, allocations: 3.938 kB / 331 MB, free: 9.93 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001651/0.007053, allocations: 8 kB / 331 MB, free: 9.922 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 8.782e-05/0.00714, allocations: 107.2 kB / 331.1 MB, free: 9.805 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.82e-05/0.007239, allocations: 43.92 kB / 331.2 MB, free: 9.762 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.00724, allocations: 0 / 331.2 MB, free: 9.762 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.57e-05/0.007256, allocations: 12.12 kB / 331.2 MB, free: 9.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003141/0.00757, allocations: 58.91 kB / 331.2 MB, free: 9.695 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003225/0.007893, allocations: 245 kB / 331.5 MB, free: 9.414 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.08e-05/0.007963, allocations: 87.27 kB / 331.6 MB, free: 9.309 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.699e-05/0.00799, allocations: 12.5 kB / 331.6 MB, free: 9.297 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.007991, allocations: 0 / 331.6 MB, free: 9.297 MB / 298.7 MB Notification: Performance of Templates: time 0.001765/0.009756, allocations: 0.9183 MB / 332.5 MB, free: 8.375 MB / 298.7 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/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_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: 4.150859599001706]