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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001257/0.001257, allocations: 104 kB / 17.59 MB, free: 5.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 191.5 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 51.42 kB / 301.3 MB, free: 5.859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1031, allocations: 49.44 MB / 350.7 MB, free: 4.41 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003649/0.1068, allocations: 1.594 MB / 352.3 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005753/0.1075, allocations: 175.4 kB / 352.5 MB, free: 2.621 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.1076, allocations: 7.938 kB / 352.5 MB, free: 2.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.963e-05/0.1077, allocations: 3.938 kB / 352.5 MB, free: 2.609 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.1078, allocations: 15.84 kB / 352.5 MB, free: 2.594 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003339/0.1082, allocations: 43.91 kB / 352.6 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001421/0.1083, allocations: 67.83 kB / 352.6 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.1085, allocations: 28.22 kB / 352.7 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.112e-05/0.1086, allocations: 23.92 kB / 352.7 MB, free: 2.434 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.771e-05/0.1086, allocations: 27.86 kB / 352.7 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.969e-05/0.1087, allocations: 4 kB / 352.7 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.982e-05/0.1087, allocations: 15.88 kB / 352.7 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.799e-05/0.1088, allocations: 19.97 kB / 352.7 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.008e-05/0.1089, allocations: 39.73 kB / 352.8 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001748/0.109, allocations: 71.7 kB / 352.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1091, allocations: 0 / 352.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1091, allocations: 0 / 352.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.1091, allocations: 4 kB / 352.9 MB, free: 2.254 MB / 286.1 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.0006615/0.1098, allocations: 387.4 kB / 353.2 MB, free: 1.824 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.1098, allocations: 15.88 kB / 353.2 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.927e-05/0.1099, allocations: 16.75 kB / 353.3 MB, free: 1.793 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002565/0.1101, allocations: 188.1 kB / 353.4 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.1102, allocations: 8.312 kB / 353.5 MB, free: 1.562 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.1102, allocations: 8.375 kB / 353.5 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005322/0.1108, allocations: 193 kB / 353.7 MB, free: 1.348 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.1108, allocations: 4.188 kB / 353.7 MB, free: 1.344 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.1108, allocations: 3.938 kB / 353.7 MB, free: 1.34 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1108, allocations: 0 / 353.7 MB, free: 1.34 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001444/0.111, allocations: 43.86 kB / 353.7 MB, free: 1.297 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005315/0.1115, allocations: 369.9 kB / 354.1 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002183/0.1118, allocations: 111.6 kB / 354.2 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.1119, allocations: 66.88 kB / 354.2 MB, free: 0.668 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.279e-05/0.112, allocations: 7.922 kB / 354.2 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.978e-05/0.112, allocations: 42.56 kB / 354.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.664e-06/0.112, allocations: 0 / 354.3 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004689/0.1125, allocations: 125.7 kB / 354.4 MB, free: 492 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.543e-05/0.1126, allocations: 118.8 kB / 354.5 MB, free: 348 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.1128, allocations: 144.4 kB / 354.7 MB, free: 196 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.1128, allocations: 29.7 kB / 354.7 MB, free: 160 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.351e-05/0.1129, allocations: 88.41 kB / 354.8 MB, free: 64 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.1129, allocations: 7.984 kB / 354.8 MB, free: 56 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.304e-05/0.113, allocations: 37.61 kB / 354.8 MB, free: 12 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.1132, allocations: 314.8 kB / 355.1 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.584e-05/0.1132, allocations: 19.98 kB / 355.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001121/0.1134, allocations: 89.25 kB / 355.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001923/0.1136, allocations: 113.2 kB / 355.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1136, allocations: 0 / 355.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002552/0.1138, allocations: 109.4 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.1139, allocations: 8.344 kB / 355.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.002e-05/0.1139, allocations: 8 kB / 355.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.1139, allocations: 0 / 355.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.561e-05/0.114, allocations: 12.36 kB / 355.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.114, allocations: 7.922 kB / 355.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.14e-05/0.1141, allocations: 15.84 kB / 355.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.1141, allocations: 8 kB / 355.5 MB, free: 15.24 MB / 302.1 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.y,hold1.u,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.0001265/0.1143, allocations: 129.7 kB / 355.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002032/0.1145, allocations: 85.52 kB / 355.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.639e-05/0.1145, allocations: 20.72 kB / 355.7 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.1146, allocations: 3.984 kB / 355.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.1146, allocations: 4 kB / 355.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1146, allocations: 0 / 355.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003449/0.1149, allocations: 193.4 kB / 355.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1149, allocations: 0 / 355.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.097e-05/0.115, allocations: 7.938 kB / 356 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.115, allocations: 0 / 356 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.115, allocations: 8 kB / 356 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.115, allocations: 0 / 356 MB, free: 14.73 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.115, allocations: 4 kB / 356 MB, free: 14.72 MB / 302.1 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 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/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 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/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:7956:5-7956: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.0006131/0.1156, allocations: 344.8 kB / 356.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.1158, allocations: 101 kB / 356.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.034e-05/0.1158, allocations: 4 kB / 356.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.116, allocations: 4 kB / 356.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.941e-05/0.116, allocations: 3.984 kB / 356.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.09e-05/0.116, allocations: 4 kB / 356.4 MB, free: 14.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000109/0.1162, allocations: 103.3 kB / 356.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1162, allocations: 0 / 356.5 MB, free: 14.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004406/0.1166, allocations: 12 kB / 356.5 MB, free: 14.12 MB / 302.1 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.0001598/0.1168, allocations: 115.2 kB / 356.6 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000244/0.117, allocations: 71.78 kB / 356.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.1171, allocations: 0 / 356.7 MB, free: 13.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.396e-05/0.1171, allocations: 11.98 kB / 356.7 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006956/0.1178, allocations: 61.02 kB / 356.8 MB, free: 13.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006184/0.1185, allocations: 245.5 kB / 357 MB, free: 13.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003612/0.1188, allocations: 0.7002 MB / 357.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.074e-05/0.1189, allocations: 15.44 kB / 357.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1189, allocations: 0 / 357.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of Templates: time 0.0036/0.1225, allocations: 0.9946 MB / 358.7 MB, free: 11.85 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile (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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches