Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001825/0.001825, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002121/0.002121, allocations: 190.8 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.661/1.661, allocations: 225.7 MB / 252.5 MB, free: 12.77 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001695/0.001695, allocations: 47.92 kB / 370.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2889, allocations: 52.19 MB / 423.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003162/0.2921, allocations: 1.613 MB / 424.7 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004727/0.2926, allocations: 163.5 kB / 424.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.543e-05/0.2926, allocations: 3.938 kB / 424.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.653e-05/0.2927, allocations: 7.922 kB / 424.9 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001217/0.2928, allocations: 19.81 kB / 424.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002671/0.2931, allocations: 51.88 kB / 424.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001254/0.2932, allocations: 55.91 kB / 425 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001144/0.2933, allocations: 24.02 kB / 425 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.711e-05/0.2934, allocations: 31.84 kB / 425 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.641e-05/0.2934, allocations: 23.86 kB / 425.1 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.927e-05/0.2934, allocations: 4 kB / 425.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.732e-05/0.2935, allocations: 8 kB / 425.1 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.12e-05/0.2935, allocations: 19.92 kB / 425.1 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.536e-05/0.2936, allocations: 27.8 kB / 425.1 MB, free: 12.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.2937, allocations: 83.3 kB / 425.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2937, allocations: 3.938 kB / 425.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2937, allocations: 0 / 425.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.2937, allocations: 0 / 425.2 MB, free: 12.32 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.0004894/0.2942, allocations: 308.7 kB / 425.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.2e-05/0.2943, allocations: 8.031 kB / 425.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.376e-05/0.2943, allocations: 16.83 kB / 425.5 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000245/0.2946, allocations: 146.3 kB / 425.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.337e-05/0.2946, allocations: 384 / 425.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.2946, allocations: 12.38 kB / 425.7 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004811/0.2951, allocations: 198.2 kB / 425.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.2951, allocations: 192 / 425.9 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.484e-05/0.2951, allocations: 7.938 kB / 425.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.2951, allocations: 0 / 425.9 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001091/0.2952, allocations: 39.92 kB / 425.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004092/0.2956, allocations: 305.5 kB / 426.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002043/0.2958, allocations: 111.8 kB / 426.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001028/0.2959, allocations: 62.56 kB / 426.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.84e-05/0.296, allocations: 0 / 426.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.296, allocations: 38.56 kB / 426.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/0.296, allocations: 0 / 426.4 MB, free: 10.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003453/0.2964, allocations: 129.5 kB / 426.6 MB, free: 10.8 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.618e-05/0.2965, allocations: 110.8 kB / 426.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.2966, allocations: 144.9 kB / 426.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.2966, allocations: 37.89 kB / 426.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.502e-05/0.2967, allocations: 88.36 kB / 426.9 MB, free: 10.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.79e-05/0.2967, allocations: 11.95 kB / 426.9 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.844e-05/0.2967, allocations: 29.7 kB / 427 MB, free: 10.33 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.2969, allocations: 322.8 kB / 427.3 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.638e-05/0.2969, allocations: 12 kB / 427.3 MB, free: 9.996 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.2971, allocations: 77.44 kB / 427.4 MB, free: 9.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.2972, allocations: 109.3 kB / 427.5 MB, free: 9.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2972, allocations: 384 / 427.5 MB, free: 9.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001998/0.2974, allocations: 129.3 kB / 427.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.2974, allocations: 8 kB / 427.6 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2974, allocations: 0 / 427.6 MB, free: 9.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.2974, allocations: 7.938 kB / 427.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.246e-05/0.2975, allocations: 7.938 kB / 427.6 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.2975, allocations: 4 kB / 427.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.608e-05/0.2975, allocations: 11.95 kB / 427.6 MB, free: 9.574 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.2975, allocations: 7.984 kB / 427.6 MB, free: 9.566 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.0001137/0.2977, allocations: 144.3 kB / 427.8 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.2978, allocations: 81.64 kB / 427.9 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.303e-05/0.2978, allocations: 12.72 kB / 427.9 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.2979, allocations: 0 / 427.9 MB, free: 9.316 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.2979, allocations: 7.922 kB / 427.9 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.2979, allocations: 4 kB / 427.9 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002026/0.2981, allocations: 117.3 kB / 428 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2981, allocations: 3.938 kB / 428 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.585e-05/0.2981, allocations: 3.984 kB / 428 MB, free: 9.152 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.2981, allocations: 7.938 kB / 428 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.2981, allocations: 8 kB / 428 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2981, allocations: 0 / 428 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2981, allocations: 4 kB / 428 MB, free: 9.133 MB / 334.1 MB [/var/lib/jenkins/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/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/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.0003966/0.2985, allocations: 336.4 kB / 428.4 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.126e-05/0.2986, allocations: 27.81 kB / 428.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.611e-05/0.2986, allocations: 0 / 428.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001012/0.2987, allocations: 11.98 kB / 428.4 MB, free: 8.746 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.414e-05/0.2987, allocations: 3.984 kB / 428.4 MB, free: 8.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.158e-06/0.2987, allocations: 8 kB / 428.4 MB, free: 8.734 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.578e-05/0.2988, allocations: 103.3 kB / 428.5 MB, free: 8.633 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2988, allocations: 0 / 428.5 MB, free: 8.633 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.2991, allocations: 8 kB / 428.5 MB, free: 8.625 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.0001102/0.2992, allocations: 107.2 kB / 428.6 MB, free: 8.512 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001854/0.2994, allocations: 71.98 kB / 428.7 MB, free: 8.441 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2994, allocations: 0 / 428.7 MB, free: 8.441 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.458e-05/0.2994, allocations: 16.08 kB / 428.7 MB, free: 8.426 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004397/0.2999, allocations: 54.8 kB / 428.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004097/0.3003, allocations: 207.6 kB / 429 MB, free: 8.141 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.3004, allocations: 83.94 kB / 429.1 MB, free: 8.039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.449e-05/0.3004, allocations: 8.438 kB / 429.1 MB, free: 8.031 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.249e-05/0.3004, allocations: 11.44 kB / 429.1 MB, free: 8.02 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3004, allocations: 0 / 429.1 MB, free: 8.02 MB / 334.1 MB Notification: Performance of Templates: time 0.00363/0.3041, allocations: 0.8827 MB / 430 MB, free: 7.156 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.749350935220718]