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.001399/0.001399, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001533/0.001533, allocations: 153.4 kB / 24.26 MB, free: 180 kB / 18.57 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.449/1.449, allocations: 173.4 MB / 200.8 MB, free: 9.289 MB / 186.7 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 1.573e-06/1.573e-06, allocations: 0 / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.524e-05/2.681e-05, allocations: 2.312 kB / 267.3 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.00322/0.003247, allocations: 1.601 MB / 268.9 MB, free: 5.09 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005453/0.003792, allocations: 179.3 kB / 269.1 MB, free: 4.914 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.839e-05/0.003881, allocations: 4 kB / 269.1 MB, free: 4.91 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.903e-05/0.00395, allocations: 11.86 kB / 269.1 MB, free: 4.898 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001433/0.004093, allocations: 7.938 kB / 269.1 MB, free: 4.891 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002643/0.004357, allocations: 51.75 kB / 269.2 MB, free: 4.84 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.004505, allocations: 63.7 kB / 269.2 MB, free: 4.777 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.004619, allocations: 28.16 kB / 269.3 MB, free: 4.75 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.072e-05/0.0047, allocations: 39.84 kB / 269.3 MB, free: 4.711 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.89e-05/0.004749, allocations: 23.95 kB / 269.3 MB, free: 4.688 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.326e-05/0.004772, allocations: 4 kB / 269.3 MB, free: 4.684 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.745e-05/0.00479, allocations: 8 kB / 269.3 MB, free: 4.676 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.386e-05/0.004844, allocations: 19.94 kB / 269.4 MB, free: 4.656 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 3.935e-05/0.004883, allocations: 19.91 kB / 269.4 MB, free: 4.637 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.005031, allocations: 79.64 kB / 269.5 MB, free: 4.559 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.005033, allocations: 0 / 269.5 MB, free: 4.559 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.81e-07/0.005034, allocations: 0 / 269.5 MB, free: 4.559 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.005039, allocations: 0 / 269.5 MB, free: 4.559 MB / 250.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.0005112/0.00555, allocations: 306 kB / 269.8 MB, free: 4.227 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.005593, allocations: 12.03 kB / 269.8 MB, free: 4.215 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.119e-05/0.005654, allocations: 20.84 kB / 269.8 MB, free: 4.195 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002621/0.005916, allocations: 149.5 kB / 269.9 MB, free: 4.023 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.00594, allocations: 8.375 kB / 269.9 MB, free: 4.016 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.005954, allocations: 4.375 kB / 269.9 MB, free: 4.012 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004297/0.006384, allocations: 196.5 kB / 270.1 MB, free: 3.805 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.966e-06/0.006393, allocations: 192 / 270.1 MB, free: 3.805 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.006409, allocations: 8.375 kB / 270.1 MB, free: 3.797 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.006414, allocations: 384 / 270.1 MB, free: 3.797 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000118/0.006532, allocations: 47.84 kB / 270.2 MB, free: 3.75 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005274/0.00706, allocations: 301.6 kB / 270.5 MB, free: 3.418 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001976/0.007257, allocations: 107.8 kB / 270.6 MB, free: 3.285 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001265/0.007384, allocations: 58.69 kB / 270.6 MB, free: 3.219 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.007413, allocations: 7.984 kB / 270.7 MB, free: 3.211 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.007448, allocations: 34.5 kB / 270.7 MB, free: 3.168 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 9.62e-07/0.007449, allocations: 0 / 270.7 MB, free: 3.168 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004116/0.007861, allocations: 141.7 kB / 270.8 MB, free: 3.023 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001036/0.007965, allocations: 119 kB / 270.9 MB, free: 2.883 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.008116, allocations: 137.8 kB / 271.1 MB, free: 2.738 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.008139, allocations: 25.7 kB / 271.1 MB, free: 2.707 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.9e-05/0.008208, allocations: 88.42 kB / 271.2 MB, free: 2.613 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.298e-05/0.008221, allocations: 7.938 kB / 271.2 MB, free: 2.605 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.254e-05/0.008273, allocations: 21.72 kB / 271.2 MB, free: 2.578 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.008451, allocations: 318.8 kB / 271.5 MB, free: 2.258 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.265e-05/0.008484, allocations: 4 kB / 271.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.446e-05/0.008519, allocations: 13.72 kB / 271.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.964e-05/0.008588, allocations: 33.7 kB / 271.6 MB, free: 2.195 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.008589, allocations: 0 / 271.6 MB, free: 2.195 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001121/0.008702, allocations: 53.64 kB / 271.6 MB, free: 2.137 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.00872, allocations: 7.938 kB / 271.6 MB, free: 2.129 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.008725, allocations: 0 / 271.6 MB, free: 2.129 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.008739, allocations: 0 / 271.6 MB, free: 2.129 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.806e-05/0.008757, allocations: 7.938 kB / 271.6 MB, free: 2.121 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.008761, allocations: 0 / 271.6 MB, free: 2.121 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.973e-05/0.008791, allocations: 3.938 kB / 271.7 MB, free: 2.117 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.008797, allocations: 4.062 kB / 271.7 MB, free: 2.113 MB / 250.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 0.0001167/0.008914, allocations: 125.8 kB / 271.8 MB, free: 1.98 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001664/0.00908, allocations: 93.52 kB / 271.9 MB, free: 1.883 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.885e-05/0.009119, allocations: 8.781 kB / 271.9 MB, free: 1.871 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.009128, allocations: 4 kB / 271.9 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.009132, allocations: 3.938 kB / 271.9 MB, free: 1.863 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.009135, allocations: 0 / 271.9 MB, free: 1.863 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000237/0.009372, allocations: 125.2 kB / 272 MB, free: 1.711 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.009379, allocations: 8 kB / 272 MB, free: 1.703 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.364e-05/0.009392, allocations: 0 / 272 MB, free: 1.703 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.448e-06/0.009397, allocations: 8 kB / 272 MB, free: 1.695 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.00941, allocations: 7.938 kB / 272 MB, free: 1.688 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.009411, allocations: 0 / 272 MB, free: 1.688 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.009414, allocations: 4 kB / 272 MB, free: 1.684 MB / 250.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:7987:5-7987: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.0004343/0.009849, allocations: 339 kB / 272.4 MB, free: 1.336 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.786e-05/0.009897, allocations: 19.94 kB / 272.4 MB, free: 1.316 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.379e-05/0.00992, allocations: 8 kB / 272.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001025/0.01002, allocations: 7.938 kB / 272.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.398e-05/0.01006, allocations: 4 kB / 272.4 MB, free: 1.297 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.005e-06/0.01006, allocations: 4 kB / 272.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000104/0.01017, allocations: 103.2 kB / 272.5 MB, free: 1.191 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01017, allocations: 4 kB / 272.5 MB, free: 1.188 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002682/0.01044, allocations: 8 kB / 272.5 MB, free: 1.18 MB / 250.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 0.0001274/0.01056, allocations: 111.1 kB / 272.6 MB, free: 1.062 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001546/0.01072, allocations: 43.92 kB / 272.7 MB, free: 1.02 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.01072, allocations: 0 / 272.7 MB, free: 1.02 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.312e-05/0.01075, allocations: 11.98 kB / 272.7 MB, free: 1.008 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004675/0.01122, allocations: 57.84 kB / 272.7 MB, free: 0.957 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004496/0.01167, allocations: 215.7 kB / 273 MB, free: 0.707 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001108/0.01178, allocations: 87.27 kB / 273 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.814e-05/0.0118, allocations: 256 / 273 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.433e-05/0.01183, allocations: 16.5 kB / 273.1 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01183, allocations: 0 / 273.1 MB, free: 0.5859 MB / 250.7 MB Notification: Performance of Templates: time 0.003763/0.0156, allocations: 0.7733 MB / 273.8 MB, free: 15.82 MB / 266.7 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.104642450925894]