Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001488/0.001488, allocations: 181 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001163/0.001162, allocations: 78.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1533/0.1533, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4e-05/4.014e-05, allocations: 4 kB / 386 MB, free: 1.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3069/0.307, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.4481, allocations: 78.23 MB / 0.5025 GB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003206/0.4485, allocations: 79.94 kB / 0.5026 GB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00536/0.4539, allocations: 1.415 MB / 0.504 GB, free: 14.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4539, allocations: 0 / 0.504 GB, free: 14.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.221e-05/0.4539, allocations: 0 / 0.504 GB, free: 14.33 MB / 362.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.0004558/0.4544, allocations: 358.3 kB / 0.5043 GB, free: 13.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.4545, allocations: 8.031 kB / 0.5043 GB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.446e-05/0.4545, allocations: 7.906 kB / 0.5043 GB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002564/0.4548, allocations: 198.8 kB / 0.5045 GB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.4548, allocations: 4 kB / 0.5045 GB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.747e-05/0.4549, allocations: 11.95 kB / 0.5045 GB, free: 13.67 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004603/0.4553, allocations: 175.1 kB / 0.5047 GB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.4554, allocations: 0 / 0.5047 GB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.4554, allocations: 0 / 0.5047 GB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.026e-06/0.4554, allocations: 4 kB / 0.5047 GB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001198/0.4555, allocations: 43.91 kB / 0.5047 GB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005333/0.4561, allocations: 373.8 kB / 0.5051 GB, free: 13.01 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.4563, allocations: 112.8 kB / 0.5052 GB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.4565, allocations: 62.75 kB / 0.5053 GB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.994e-05/0.4565, allocations: 0 / 0.5053 GB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.4566, allocations: 38.56 kB / 0.5053 GB, free: 12.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.993e-06/0.4566, allocations: 0 / 0.5053 GB, free: 12.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003162/0.4569, allocations: 97.47 kB / 0.5054 GB, free: 12.65 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.777e-05/0.457, allocations: 110.8 kB / 0.5055 GB, free: 12.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.4572, allocations: 129.1 kB / 0.5056 GB, free: 12.38 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.4572, allocations: 29.7 kB / 0.5057 GB, free: 12.35 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.254e-05/0.4573, allocations: 154.8 kB / 0.5058 GB, free: 12.19 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.111e-05/0.4573, allocations: 11.98 kB / 0.5058 GB, free: 12.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.28e-06/0.4573, allocations: 0 / 0.5058 GB, free: 12.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.4575, allocations: 318.8 kB / 0.5061 GB, free: 11.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.211e-05/0.4575, allocations: 16.06 kB / 0.5061 GB, free: 11.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.4576, allocations: 85.31 kB / 0.5062 GB, free: 11.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.515e-05/0.4577, allocations: 20 kB / 0.5062 GB, free: 11.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.4577, allocations: 0 / 0.5062 GB, free: 11.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000239/0.458, allocations: 113.3 kB / 0.5063 GB, free: 11.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.458, allocations: 4 kB / 0.5063 GB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.458, allocations: 8 kB / 0.5064 GB, free: 11.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.4581, allocations: 4 kB / 0.5064 GB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.515e-05/0.4581, allocations: 11.98 kB / 0.5064 GB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/0.4581, allocations: 7.938 kB / 0.5064 GB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.4582, allocations: 4.344 kB / 0.5064 GB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.4583, allocations: 8 kB / 0.5064 GB, free: 11.54 MB / 362.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 (sample1.u,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,sample2.y,hold.u,hold.y,sample1.y) * Number of discrete 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 0.0001011/0.4584, allocations: 118.3 kB / 0.5065 GB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000209/0.4586, allocations: 85.56 kB / 0.5066 GB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.535e-05/0.4587, allocations: 16.62 kB / 0.5066 GB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.4587, allocations: 7.984 kB / 0.5066 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.4587, allocations: 0 / 0.5066 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.4587, allocations: 0 / 0.5066 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003544/0.4591, allocations: 181.6 kB / 0.5068 GB, free: 11.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.4591, allocations: 8 kB / 0.5068 GB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.374e-05/0.4592, allocations: 7.922 kB / 0.5068 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.181e-06/0.4592, allocations: 4 kB / 0.5068 GB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.408e-05/0.4592, allocations: 4 kB / 0.5068 GB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.4592, allocations: 0 / 0.5068 GB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.4592, allocations: 4 kB / 0.5068 GB, free: 11.06 MB / 362.7 MB [/var/lib/jenkins1/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 hold.y hold.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) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: xor.u2 sample2.y hold.y hold.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) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) xor.u2 = sample2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7819:5-7819: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.0005052/0.4597, allocations: 355.8 kB / 0.5071 GB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001077/0.4598, allocations: 93 kB / 0.5072 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.4599, allocations: 4 kB / 0.5072 GB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.46, allocations: 8 kB / 0.5072 GB, free: 10.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.909e-05/0.4601, allocations: 11.98 kB / 0.5073 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.41e-05/0.4601, allocations: 4 kB / 0.5073 GB, free: 10.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001057/0.4602, allocations: 103.3 kB / 0.5074 GB, free: 10.44 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4603, allocations: 0 / 0.5074 GB, free: 10.44 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003632/0.4606, allocations: 12 kB / 0.5074 GB, free: 10.43 MB / 362.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 (sample1.u,hold.y,sample1.y,hold.u,sample2.y,integerConstant.y,xor.u1,xor.u2,xor.y,xor1.u1,xor1.u2,xor1.y) * Number of discrete 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 0.0001473/0.4608, allocations: 95.25 kB / 0.5075 GB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002124/0.461, allocations: 68.19 kB / 0.5075 GB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.461, allocations: 0 / 0.5075 GB, free: 10.26 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.944e-05/0.4611, allocations: 7.938 kB / 0.5075 GB, free: 10.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004324/0.4615, allocations: 48.28 kB / 0.5076 GB, free: 10.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004612/0.462, allocations: 191.6 kB / 0.5078 GB, free: 9.988 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003563/0.4624, allocations: 0.7125 MB / 0.5085 GB, free: 9.25 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.258e-05/0.4624, allocations: 11.44 kB / 0.5085 GB, free: 9.238 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.4624, allocations: 0 / 0.5085 GB, free: 9.238 MB / 362.7 MB Notification: Performance of Templates: time 0.003228/0.4657, allocations: 0.9727 MB / 0.5094 GB, free: 8.262 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches