Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009522/0.0009523, allocations: 99.06 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001115/0.001116, allocations: 202.3 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 227.7 MB / 247.5 MB, free: 11.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002418/0.0002415, allocations: 11.98 kB / 308.4 MB, free: 0.7578 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09995/0.1002, allocations: 51.52 MB / 359.9 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002206/0.1025, allocations: 1.321 MB / 361.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004469/0.1029, allocations: 163.5 kB / 361.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.218e-05/0.1031, allocations: 4 kB / 361.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.759e-05/0.1031, allocations: 7.922 kB / 361.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001241/0.1032, allocations: 3.938 kB / 361.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002594/0.1035, allocations: 47.95 kB / 361.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.967e-05/0.1036, allocations: 59.78 kB / 361.5 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.1037, allocations: 40.19 kB / 361.6 MB, free: 11.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.636e-05/0.1038, allocations: 11.94 kB / 361.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.898e-05/0.1038, allocations: 23.8 kB / 361.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.944e-05/0.1039, allocations: 4 kB / 361.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.063e-05/0.1039, allocations: 0 / 361.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.096e-05/0.1039, allocations: 15.92 kB / 361.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.12e-05/0.104, allocations: 57.5 kB / 361.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.032e-05/0.1041, allocations: 51.83 kB / 361.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.826e-06/0.1041, allocations: 0 / 361.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1041, allocations: 0 / 361.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.597e-06/0.1041, allocations: 4 kB / 361.7 MB, free: 11.41 MB / 302.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.0004427/0.1046, allocations: 371.5 kB / 362.1 MB, free: 11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.1046, allocations: 8.031 kB / 362.1 MB, free: 10.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.156e-05/0.1046, allocations: 12.84 kB / 362.1 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001951/0.1048, allocations: 207 kB / 362.3 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.1049, allocations: 4.375 kB / 362.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.1049, allocations: 8.375 kB / 362.3 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000508/0.1054, allocations: 190 kB / 362.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.1054, allocations: 192 / 362.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.1055, allocations: 3.938 kB / 362.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1055, allocations: 0 / 362.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001138/0.1056, allocations: 47.92 kB / 362.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004389/0.1061, allocations: 365.9 kB / 362.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.1063, allocations: 115.8 kB / 363 MB, free: 9.918 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.1064, allocations: 70.56 kB / 363.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.354e-05/0.1064, allocations: 3.984 kB / 363.1 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.371e-05/0.1065, allocations: 38.56 kB / 363.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.1065, allocations: 0 / 363.1 MB, free: 9.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.000345/0.1068, allocations: 133.5 kB / 363.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.907e-05/0.1069, allocations: 110.8 kB / 363.4 MB, free: 9.52 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.1071, allocations: 141.7 kB / 363.5 MB, free: 9.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.1071, allocations: 33.64 kB / 363.5 MB, free: 9.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.131e-05/0.1071, allocations: 84.36 kB / 363.6 MB, free: 9.242 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.037e-05/0.1072, allocations: 16.14 kB / 363.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.08e-05/0.1072, allocations: 21.72 kB / 363.7 MB, free: 9.199 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.1073, allocations: 322.8 kB / 364 MB, free: 8.875 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.017e-05/0.1074, allocations: 15.98 kB / 364 MB, free: 8.859 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.534e-05/0.1075, allocations: 89.38 kB / 364.1 MB, free: 8.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001471/0.1076, allocations: 113.2 kB / 364.2 MB, free: 8.594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.1077, allocations: 0 / 364.2 MB, free: 8.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002032/0.1079, allocations: 117.3 kB / 364.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.1079, allocations: 8 kB / 364.3 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.1079, allocations: 4 kB / 364.3 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.425e-05/0.1079, allocations: 3.984 kB / 364.3 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.194e-05/0.108, allocations: 7.938 kB / 364.3 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.108, allocations: 7.984 kB / 364.3 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.795e-05/0.108, allocations: 12.28 kB / 364.3 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.108, allocations: 12 kB / 364.4 MB, free: 8.418 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 9.856e-05/0.1082, allocations: 133.7 kB / 364.5 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001441/0.1083, allocations: 85.91 kB / 364.6 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.384e-05/0.1084, allocations: 16.7 kB / 364.6 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.1084, allocations: 0 / 364.6 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1084, allocations: 7.938 kB / 364.6 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.1084, allocations: 0 / 364.6 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002327/0.1086, allocations: 193.4 kB / 364.8 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.1086, allocations: 8 kB / 364.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.381e-05/0.1087, allocations: 0 / 364.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.1087, allocations: 0 / 364.8 MB, free: 7.918 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.1087, allocations: 11.94 kB / 364.8 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.1087, allocations: 0 / 364.8 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1087, allocations: 0 / 364.8 MB, free: 7.906 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:7947:5-7947: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.0003907/0.1091, allocations: 351 kB / 365.1 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.299e-05/0.1092, allocations: 92.98 kB / 365.2 MB, free: 7.434 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.372e-05/0.1092, allocations: 12 kB / 365.3 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.207e-05/0.1093, allocations: 0 / 365.3 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.299e-05/0.1093, allocations: 4 kB / 365.3 MB, free: 7.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.1093, allocations: 4 kB / 365.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.948e-05/0.1094, allocations: 107.2 kB / 365.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.1094, allocations: 0 / 365.4 MB, free: 7.309 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003039/0.1097, allocations: 16 kB / 365.4 MB, free: 7.293 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.0001028/0.1098, allocations: 103.2 kB / 365.5 MB, free: 7.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001841/0.11, allocations: 80.41 kB / 365.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.11, allocations: 0 / 365.6 MB, free: 7.102 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.249e-05/0.1101, allocations: 4 kB / 365.6 MB, free: 7.098 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.1105, allocations: 55.89 kB / 365.6 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000431/0.111, allocations: 268.8 kB / 365.9 MB, free: 6.742 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002535/0.1112, allocations: 0.7004 MB / 366.6 MB, free: 6.016 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.151e-05/0.1113, allocations: 11.81 kB / 366.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.1113, allocations: 0 / 366.6 MB, free: 6.004 MB / 302.1 MB Notification: Performance of Templates: time 0.002518/0.1138, allocations: 0.9798 MB / 367.6 MB, free: 5.023 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches