Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006761/0.0006762, allocations: 93.39 kB / 16.04 MB, free: 5.301 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07518/0.07518, allocations: 12.63 MB / 29.41 MB, free: 5.953 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001621/0.0001621, allocations: 4 kB / 40.28 MB, free: 0.5117 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.004774/0.004949, allocations: 2.83 MB / 43.11 MB, free: 5.957 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2): time 1.458/1.463, allocations: 277.6 MB / 320.7 MB, free: 10.63 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003598/1.463, allocations: 155.5 kB / 320.9 MB, free: 10.48 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.234e-05/1.463, allocations: 4.719 kB / 320.9 MB, free: 10.47 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 3.488e-05/1.463, allocations: 7.922 kB / 320.9 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001103/1.463, allocations: 9.031 kB / 320.9 MB, free: 10.46 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002347/1.464, allocations: 39.89 kB / 320.9 MB, free: 10.42 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 9.068e-05/1.464, allocations: 55.77 kB / 321 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001323/1.464, allocations: 53.77 kB / 321 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.239e-05/1.464, allocations: 23.05 kB / 321 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.622e-05/1.464, allocations: 23.86 kB / 321.1 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.71e-05/1.464, allocations: 0 / 321.1 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.195e-05/1.464, allocations: 4 kB / 321.1 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.177e-05/1.464, allocations: 15.92 kB / 321.1 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.342e-05/1.464, allocations: 53.45 kB / 321.1 MB, free: 10.2 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 9.91e-05/1.464, allocations: 71.69 kB / 321.2 MB, free: 10.12 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/1.464, allocations: 0 / 321.2 MB, free: 10.12 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.623e-06/1.464, allocations: 0 / 321.2 MB, free: 10.12 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.035e-06/1.464, allocations: 4.5 kB / 321.2 MB, free: 10.12 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.00044/1.465, allocations: 362.6 kB / 321.6 MB, free: 9.719 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/1.465, allocations: 12.03 kB / 321.6 MB, free: 9.707 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.123e-05/1.465, allocations: 12.75 kB / 321.6 MB, free: 9.695 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001935/1.465, allocations: 204.1 kB / 321.8 MB, free: 9.457 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/1.465, allocations: 384 / 321.8 MB, free: 9.457 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/1.465, allocations: 8.375 kB / 321.8 MB, free: 9.449 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003751/1.465, allocations: 194.1 kB / 322 MB, free: 9.242 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/1.465, allocations: 192 / 322 MB, free: 9.242 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/1.465, allocations: 3.938 kB / 322 MB, free: 9.238 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.152e-06/1.465, allocations: 4 kB / 322 MB, free: 9.234 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001045/1.466, allocations: 40.42 kB / 322 MB, free: 9.195 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003542/1.466, allocations: 373 kB / 322.4 MB, free: 8.777 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/1.466, allocations: 117.1 kB / 322.5 MB, free: 8.637 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.385e-05/1.466, allocations: 64.03 kB / 322.6 MB, free: 8.566 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.523e-05/1.466, allocations: 0.5625 kB / 322.6 MB, free: 8.566 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/1.466, allocations: 47.23 kB / 322.6 MB, free: 8.512 MB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.192e-06/1.466, allocations: 1.156 kB / 322.6 MB, free: 8.512 MB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003185/1.467, allocations: 127.2 kB / 322.8 MB, free: 8.383 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.406e-05/1.467, allocations: 110.8 kB / 322.9 MB, free: 8.25 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/1.467, allocations: 142.6 kB / 323 MB, free: 8.102 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.955e-05/1.467, allocations: 29.7 kB / 323 MB, free: 8.066 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.73e-05/1.467, allocations: 93.3 kB / 323.1 MB, free: 7.969 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.129e-05/1.467, allocations: 3.984 kB / 323.1 MB, free: 7.965 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.099e-06/1.467, allocations: 4.688 kB / 323.1 MB, free: 7.961 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001077/1.467, allocations: 316.8 kB / 323.4 MB, free: 7.645 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.473e-05/1.467, allocations: 19.92 kB / 323.5 MB, free: 7.625 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.692e-05/1.467, allocations: 87.28 kB / 323.5 MB, free: 7.508 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001201/1.467, allocations: 111.9 kB / 323.7 MB, free: 7.371 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/1.467, allocations: 0 / 323.7 MB, free: 7.371 MB / 250.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001802/1.467, allocations: 120.7 kB / 323.8 MB, free: 7.25 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/1.468, allocations: 4 kB / 323.8 MB, free: 7.246 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/1.468, allocations: 7.938 kB / 323.8 MB, free: 7.238 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/1.468, allocations: 4.719 kB / 323.8 MB, free: 7.234 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.267e-05/1.468, allocations: 11.92 kB / 323.8 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/1.468, allocations: 4.594 kB / 323.8 MB, free: 7.219 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.275e-05/1.468, allocations: 11.94 kB / 323.8 MB, free: 7.207 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/1.468, allocations: 4 kB / 323.8 MB, free: 7.203 MB / 250.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,hold.u,hold.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001018/1.468, allocations: 141.6 kB / 324 MB, free: 7.055 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001318/1.468, allocations: 81.5 kB / 324 MB, free: 6.969 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.981e-05/1.468, allocations: 16.72 kB / 324.1 MB, free: 6.949 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/1.468, allocations: 4.469 kB / 324.1 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/1.468, allocations: 0 / 324.1 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/1.468, allocations: 0 / 324.1 MB, free: 6.945 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002333/1.468, allocations: 197.5 kB / 324.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/1.468, allocations: 0 / 324.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.751e-05/1.468, allocations: 11.88 kB / 324.3 MB, free: 6.691 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/1.468, allocations: 0 / 324.3 MB, free: 6.691 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-06/1.468, allocations: 3.984 kB / 324.3 MB, free: 6.688 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/1.468, allocations: 4 kB / 324.3 MB, free: 6.684 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/1.468, allocations: 0 / 324.3 MB, free: 6.684 MB / 250.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:7946:5-7946: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.0004172/1.469, allocations: 348.3 kB / 324.6 MB, free: 6.324 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/1.469, allocations: 96.94 kB / 324.7 MB, free: 6.211 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/1.469, allocations: 4 kB / 324.7 MB, free: 6.207 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.045e-05/1.469, allocations: 4 kB / 324.7 MB, free: 6.203 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.152e-05/1.469, allocations: 11.98 kB / 324.7 MB, free: 6.191 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.684e-06/1.469, allocations: 4 kB / 324.7 MB, free: 6.188 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.948e-05/1.469, allocations: 99.27 kB / 324.8 MB, free: 6.09 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.51e-07/1.469, allocations: 4 kB / 324.8 MB, free: 6.086 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002548/1.469, allocations: 15.91 kB / 324.8 MB, free: 6.07 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,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 () * 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 8.086e-05/1.469, allocations: 99.77 kB / 324.9 MB, free: 5.965 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001627/1.47, allocations: 71.97 kB / 325 MB, free: 5.895 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/1.47, allocations: 0 / 325 MB, free: 5.895 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.602e-05/1.47, allocations: 15.94 kB / 325 MB, free: 5.879 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003832/1.47, allocations: 59.88 kB / 325.1 MB, free: 5.82 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003421/1.47, allocations: 228.7 kB / 325.3 MB, free: 5.566 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/1.471, allocations: 0.7043 MB / 326 MB, free: 4.836 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.584e-05/1.471, allocations: 8.422 kB / 326 MB, free: 4.828 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.662e-05/1.471, allocations: 15.44 kB / 326 MB, free: 4.812 MB / 250.7 MB Notification: Performance of SimCode: time 2.31e-07/1.471, allocations: 4 kB / 326 MB, free: 4.809 MB / 250.7 MB Notification: Performance of Templates: time 0.002541/1.473, allocations: 0.7133 MB / 326.8 MB, free: 4.102 MB / 250.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