Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.0009622/0.0009622, allocations: 182.3 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.517/1.517, allocations: 205.2 MB / 219 MB, free: 9.203 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.0007952/0.0007952, allocations: 96.25 kB / 267.1 MB, free: 9.273 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08403/0.08403, allocations: 12.58 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.968e-05/2.972e-05, allocations: 8 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08393/0.08398, allocations: 50.37 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3282/0.4122, allocations: 78.23 MB / 0.5025 GB, free: 11.92 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002256/0.4125, allocations: 76.95 kB / 0.5026 GB, free: 11.92 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003034/0.4155, allocations: 1.411 MB / 0.504 GB, free: 11.54 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4155, allocations: 2.062 kB / 0.504 GB, free: 11.54 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.4156, allocations: 3.844 kB / 0.504 GB, free: 11.54 MB / 330.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.000275/0.4158, allocations: 356 kB / 0.5043 GB, free: 11.18 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.4159, allocations: 7.688 kB / 0.5043 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.72e-05/0.4159, allocations: 15.56 kB / 0.5044 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.4161, allocations: 195.5 kB / 0.5045 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.4161, allocations: 7 kB / 0.5045 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.587e-05/0.4162, allocations: 10.8 kB / 0.5046 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003425/0.4165, allocations: 175.8 kB / 0.5047 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.4165, allocations: 0 / 0.5047 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.229e-05/0.4165, allocations: 0 / 0.5047 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.4166, allocations: 0 / 0.5047 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.028e-05/0.4166, allocations: 38.22 kB / 0.5048 GB, free: 10.88 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003476/0.417, allocations: 375.2 kB / 0.5051 GB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001149/0.4171, allocations: 108.6 kB / 0.5052 GB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.518e-05/0.4172, allocations: 62.58 kB / 0.5053 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.4172, allocations: 3.938 kB / 0.5053 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.4172, allocations: 41.28 kB / 0.5053 GB, free: 10.36 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.4173, allocations: 0 / 0.5053 GB, free: 10.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002114/0.4175, allocations: 96.22 kB / 0.5054 GB, free: 10.32 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.4175, allocations: 110 kB / 0.5055 GB, free: 10.2 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.13e-05/0.4176, allocations: 131.8 kB / 0.5056 GB, free: 10.1 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.119e-05/0.4176, allocations: 25.7 kB / 0.5057 GB, free: 10.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.88e-05/0.4177, allocations: 94.14 kB / 0.5058 GB, free: 9.977 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.342e-05/0.4177, allocations: 10.95 kB / 0.5058 GB, free: 9.977 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-06/0.4177, allocations: 0 / 0.5058 GB, free: 9.977 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.938e-05/0.4178, allocations: 321.1 kB / 0.5061 GB, free: 9.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.09e-05/0.4178, allocations: 11.41 kB / 0.5061 GB, free: 9.66 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.662e-05/0.4178, allocations: 93.33 kB / 0.5062 GB, free: 9.562 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.684e-05/0.4179, allocations: 21.45 kB / 0.5062 GB, free: 9.559 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.4179, allocations: 0 / 0.5062 GB, free: 9.559 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001268/0.418, allocations: 111.5 kB / 0.5063 GB, free: 9.508 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.4181, allocations: 7.531 kB / 0.5063 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.4181, allocations: 352 / 0.5063 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.4181, allocations: 10.66 kB / 0.5063 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.839e-05/0.4181, allocations: 3.844 kB / 0.5063 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.4181, allocations: 8.641 kB / 0.5063 GB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.28e-05/0.4182, allocations: 7.906 kB / 0.5063 GB, free: 9.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.4182, allocations: 10.66 kB / 0.5064 GB, free: 9.496 MB / 330.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 5.192e-05/0.4183, allocations: 121.6 kB / 0.5065 GB, free: 9.383 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.4184, allocations: 77.97 kB / 0.5065 GB, free: 9.344 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.196e-05/0.4184, allocations: 19.47 kB / 0.5066 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.4184, allocations: 6.656 kB / 0.5066 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.4184, allocations: 0 / 0.5066 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.4184, allocations: 192 / 0.5066 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001792/0.4186, allocations: 186.7 kB / 0.5067 GB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.4186, allocations: 7.922 kB / 0.5068 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.606e-05/0.4187, allocations: 7.125 kB / 0.5068 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.4187, allocations: 3.844 kB / 0.5068 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.4187, allocations: 0 / 0.5068 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.4187, allocations: 6.844 kB / 0.5068 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4187, allocations: 0 / 0.5068 GB, free: 9.137 MB / 330.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 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/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 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/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: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.00026/0.419, allocations: 360.2 kB / 0.5071 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.527e-05/0.419, allocations: 104.3 kB / 0.5072 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.644e-05/0.419, allocations: 7.531 kB / 0.5072 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.933e-05/0.4191, allocations: 7.625 kB / 0.5072 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.667e-05/0.4192, allocations: 0 / 0.5072 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.951e-06/0.4192, allocations: 3.75 kB / 0.5072 GB, free: 8.762 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.382e-05/0.4192, allocations: 103.9 kB / 0.5073 GB, free: 8.688 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4192, allocations: 0 / 0.5073 GB, free: 8.688 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002434/0.4195, allocations: 14.88 kB / 0.5073 GB, free: 8.688 MB / 330.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 7.975e-05/0.4196, allocations: 101.8 kB / 0.5074 GB, free: 8.594 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001151/0.4197, allocations: 64.12 kB / 0.5075 GB, free: 8.586 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.4197, allocations: 0 / 0.5075 GB, free: 8.586 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.604e-05/0.4197, allocations: 7.781 kB / 0.5075 GB, free: 8.582 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002742/0.42, allocations: 52.66 kB / 0.5076 GB, free: 8.574 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002434/0.4203, allocations: 153.1 kB / 0.5077 GB, free: 8.469 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001496/0.4204, allocations: 0.7039 MB / 0.5084 GB, free: 7.773 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.834e-05/0.4204, allocations: 7.375 kB / 0.5084 GB, free: 7.773 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.445e-05/0.4205, allocations: 11.28 kB / 0.5084 GB, free: 7.766 MB / 330.7 MB Notification: Performance of SimCode: time 3.2e-07/0.4205, allocations: 0 / 0.5084 GB, free: 7.766 MB / 330.7 MB Notification: Performance of Templates: time 0.002316/0.4228, allocations: 0.6905 MB / 0.5091 GB, free: 7.684 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches