Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001373/0.001373, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 226.6 MB / 244.3 MB, free: 8.289 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007795/0.0007793, allocations: 97.75 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002082/0.0002082, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2121, allocations: 51.28 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.001477/0.2136, allocations: 1.3 MB / 408.8 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003231/0.214, allocations: 179.5 kB / 409 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.207e-05/0.2141, allocations: 0 / 409 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.316e-05/0.2141, allocations: 3.938 kB / 409 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.2142, allocations: 11.92 kB / 409 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002244/0.2145, allocations: 40.58 kB / 409 MB, free: 26.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.156e-05/0.2146, allocations: 52.69 kB / 409.1 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.941e-05/0.2147, allocations: 26.17 kB / 409.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.313e-05/0.2147, allocations: 27.8 kB / 409.1 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.781e-05/0.2147, allocations: 25.2 kB / 409.2 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.913e-05/0.2148, allocations: 0 / 409.2 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.257e-05/0.2148, allocations: 4 kB / 409.2 MB, free: 26.17 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.169e-05/0.2148, allocations: 11.98 kB / 409.2 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.049e-05/0.2149, allocations: 38.17 kB / 409.2 MB, free: 26.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.834e-05/0.2149, allocations: 49.89 kB / 409.3 MB, free: 26.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.2149, allocations: 0 / 409.3 MB, free: 26.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2149, allocations: 0 / 409.3 MB, free: 26.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.439e-06/0.215, allocations: 0 / 409.3 MB, free: 26.07 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.0003493/0.2153, allocations: 376.7 kB / 409.6 MB, free: 25.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.179e-05/0.2153, allocations: 8.031 kB / 409.6 MB, free: 25.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.216e-05/0.2154, allocations: 14.16 kB / 409.6 MB, free: 25.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000136/0.2155, allocations: 186.9 kB / 409.8 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.2156, allocations: 4 kB / 409.8 MB, free: 25.41 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.2156, allocations: 11.95 kB / 409.8 MB, free: 25.4 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003015/0.2159, allocations: 192.6 kB / 410 MB, free: 25.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.2159, allocations: 7.969 kB / 410 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.064e-05/0.2159, allocations: 3.938 kB / 410 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2159, allocations: 4 kB / 410 MB, free: 25.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.752e-05/0.216, allocations: 39.98 kB / 410.1 MB, free: 25.14 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002815/0.2163, allocations: 378.7 kB / 410.5 MB, free: 24.72 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001255/0.2164, allocations: 107.9 kB / 410.6 MB, free: 24.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.286e-05/0.2165, allocations: 66.62 kB / 410.6 MB, free: 24.51 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.177e-05/0.2166, allocations: 0 / 410.6 MB, free: 24.51 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.2166, allocations: 42.48 kB / 410.7 MB, free: 24.46 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 9.51e-07/0.2166, allocations: 4 kB / 410.7 MB, free: 24.46 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002685/0.2169, allocations: 129.9 kB / 410.8 MB, free: 24.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.957e-05/0.2169, allocations: 114.8 kB / 410.9 MB, free: 24.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.164e-05/0.217, allocations: 141.9 kB / 411 MB, free: 24.04 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.024e-05/0.217, allocations: 29.7 kB / 411.1 MB, free: 24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.779e-05/0.217, allocations: 80.42 kB / 411.2 MB, free: 23.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.002e-05/0.2171, allocations: 15.89 kB / 411.2 MB, free: 23.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-06/0.2171, allocations: 0 / 411.2 MB, free: 23.9 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.427e-05/0.2171, allocations: 326.7 kB / 411.5 MB, free: 23.57 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.789e-05/0.2172, allocations: 19.98 kB / 411.5 MB, free: 23.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.02e-05/0.2172, allocations: 80.5 kB / 411.6 MB, free: 23.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.591e-05/0.2173, allocations: 27.94 kB / 411.6 MB, free: 23.42 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2173, allocations: 0 / 411.6 MB, free: 23.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001429/0.2174, allocations: 125.3 kB / 411.7 MB, free: 23.29 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.47e-05/0.2175, allocations: 8 kB / 411.7 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.2175, allocations: 0 / 411.7 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.105e-05/0.2175, allocations: 4 kB / 411.8 MB, free: 23.28 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.994e-05/0.2175, allocations: 4 kB / 411.8 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.2175, allocations: 7.938 kB / 411.8 MB, free: 23.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.017e-05/0.2176, allocations: 8.344 kB / 411.8 MB, free: 23.26 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.267e-06/0.2176, allocations: 12 kB / 411.8 MB, free: 23.25 MB / 298.7 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.u,hold1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.226e-05/0.2177, allocations: 133.7 kB / 411.9 MB, free: 23.11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.2178, allocations: 81.53 kB / 412 MB, free: 23.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.2178, allocations: 16.72 kB / 412 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.2178, allocations: 0 / 412 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2178, allocations: 0 / 412 MB, free: 23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.2178, allocations: 7.984 kB / 412 MB, free: 22.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001636/0.218, allocations: 185.5 kB / 412.2 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.218, allocations: 4 kB / 412.2 MB, free: 22.76 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.571e-05/0.218, allocations: 11.92 kB / 412.2 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.218, allocations: 0 / 412.2 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.2181, allocations: 8 kB / 412.2 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2181, allocations: 0 / 412.2 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2181, allocations: 3.984 kB / 412.2 MB, free: 22.73 MB / 298.7 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:7863:5-7863: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.0003002/0.2184, allocations: 336.5 kB / 412.6 MB, free: 22.39 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.443e-05/0.2184, allocations: 104.9 kB / 412.7 MB, free: 22.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.2184, allocations: 7.984 kB / 412.7 MB, free: 22.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.71e-05/0.2185, allocations: 7.938 kB / 412.7 MB, free: 22.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.943e-05/0.2186, allocations: 0 / 412.7 MB, free: 22.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.2186, allocations: 8 kB / 412.7 MB, free: 22.24 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.456e-05/0.2186, allocations: 114.1 kB / 412.8 MB, free: 22.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2186, allocations: 0 / 412.8 MB, free: 22.13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002439/0.2189, allocations: 12 kB / 412.8 MB, free: 22.12 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.582e-05/0.219, allocations: 106.5 kB / 412.9 MB, free: 22.01 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001372/0.2191, allocations: 72.34 kB / 413 MB, free: 21.94 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.2191, allocations: 0 / 413 MB, free: 21.94 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.621e-05/0.2191, allocations: 11.94 kB / 413 MB, free: 21.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003668/0.2195, allocations: 54.23 kB / 413 MB, free: 21.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000309/0.2198, allocations: 261.8 kB / 413.3 MB, free: 21.58 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001294/0.22, allocations: 0.7043 MB / 414 MB, free: 20.85 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.344e-05/0.22, allocations: 11.44 kB / 414 MB, free: 20.84 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.22, allocations: 0 / 414 MB, free: 20.84 MB / 298.7 MB Notification: Performance of Templates: time 0.001789/0.2218, allocations: 0.9743 MB / 415 MB, free: 19.86 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches