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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 176.8 kB / 17.4 MB, free: 4.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.693/1.693, allocations: 223.3 MB / 241.4 MB, free: 9.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008256/0.0008256, allocations: 96.64 kB / 292.6 MB, free: 10.57 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000315/0.0003151, allocations: 19.94 kB / 352.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2916, allocations: 50.4 MB / 402.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1056/0.3972, allocations: 77.18 MB / 479.9 MB, free: 3.133 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.3975, allocations: 86.09 kB / 480 MB, free: 3.051 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003606/0.4011, allocations: 1.454 MB / 481.5 MB, free: 1.598 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.658e-06/0.4012, allocations: 4.938 kB / 481.5 MB, free: 1.594 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.178e-06/0.4012, allocations: 0 / 481.5 MB, free: 1.594 MB / 346.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.0003697/0.4015, allocations: 373.8 kB / 481.8 MB, free: 1.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.4016, allocations: 8.031 kB / 481.8 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.919e-05/0.4016, allocations: 16.78 kB / 481.9 MB, free: 1.156 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.4018, allocations: 196.1 kB / 482.1 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.4019, allocations: 8.375 kB / 482.1 MB, free: 0.918 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.284e-05/0.4019, allocations: 7.375 kB / 482.1 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003575/0.4023, allocations: 179.7 kB / 482.2 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.4023, allocations: 192 / 482.2 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.4023, allocations: 7.938 kB / 482.3 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.4023, allocations: 0 / 482.3 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001033/0.4024, allocations: 47.91 kB / 482.3 MB, free: 0.668 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004359/0.4029, allocations: 366 kB / 482.7 MB, free: 260 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001764/0.4031, allocations: 119.6 kB / 482.8 MB, free: 112 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.945e-05/0.4032, allocations: 66.81 kB / 482.8 MB, free: 36 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.4032, allocations: 0 / 482.8 MB, free: 36 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.4032, allocations: 34.56 kB / 482.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.082e-06/0.4033, allocations: 0 / 482.9 MB, free: 15.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003349/0.4036, allocations: 133.4 kB / 483 MB, free: 15.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.325e-05/0.4037, allocations: 111.2 kB / 483.1 MB, free: 15.72 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.4038, allocations: 149.6 kB / 483.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.67e-05/0.4038, allocations: 25.7 kB / 483.3 MB, free: 15.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.482e-05/0.4039, allocations: 88.42 kB / 483.4 MB, free: 15.44 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.16e-05/0.4039, allocations: 7.844 kB / 483.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.652e-05/0.4039, allocations: 4 kB / 483.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.4041, allocations: 335 kB / 483.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.245e-05/0.4041, allocations: 11.98 kB / 483.7 MB, free: 15.08 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.449e-05/0.4042, allocations: 81.44 kB / 483.8 MB, free: 14.97 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.4044, allocations: 114.4 kB / 483.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.4044, allocations: 0 / 483.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000187/0.4046, allocations: 125.4 kB / 484 MB, free: 14.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.4046, allocations: 4 kB / 484 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.4046, allocations: 4 kB / 484 MB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.4046, allocations: 4 kB / 484 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.771e-05/0.4046, allocations: 7.938 kB / 484.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.4047, allocations: 7.984 kB / 484.1 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.062e-05/0.4047, allocations: 4 kB / 484.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.4047, allocations: 8 kB / 484.1 MB, free: 14.66 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,hold1.u,hold1.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.927e-05/0.4048, allocations: 135.5 kB / 484.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.405, allocations: 77.59 kB / 484.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.649e-05/0.4051, allocations: 24.7 kB / 484.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.4051, allocations: 0 / 484.3 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4051, allocations: 4 kB / 484.3 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.4051, allocations: 0 / 484.3 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002378/0.4053, allocations: 185.6 kB / 484.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.4053, allocations: 3.938 kB / 484.5 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.217e-05/0.4054, allocations: 4 kB / 484.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.4054, allocations: 4 kB / 484.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.4054, allocations: 4 kB / 484.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.4054, allocations: 0 / 484.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.4054, allocations: 0 / 484.5 MB, free: 14.16 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 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:7938:5-7938: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.0004006/0.4058, allocations: 352.4 kB / 484.8 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.769e-05/0.4059, allocations: 97 kB / 484.9 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.4059, allocations: 0 / 484.9 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.125e-05/0.406, allocations: 8.094 kB / 485 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.918e-05/0.406, allocations: 3.938 kB / 485 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.504e-06/0.4061, allocations: 4 kB / 485 MB, free: 13.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.822e-05/0.4061, allocations: 109.6 kB / 485.1 MB, free: 13.56 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4061, allocations: 4 kB / 485.1 MB, free: 13.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002622/0.4064, allocations: 12 kB / 485.1 MB, free: 13.54 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,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 (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.0001195/0.4065, allocations: 103.2 kB / 485.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000179/0.4067, allocations: 76.34 kB / 485.3 MB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4067, allocations: 4.125 kB / 485.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.078e-05/0.4068, allocations: 8 kB / 485.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004305/0.4072, allocations: 59.88 kB / 485.3 MB, free: 13.29 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004442/0.4077, allocations: 226.9 kB / 485.5 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003243/0.408, allocations: 0.7004 MB / 486.2 MB, free: 12.31 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.256e-05/0.408, allocations: 4.438 kB / 486.3 MB, free: 12.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.337e-05/0.4081, allocations: 15.42 kB / 486.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.4081, allocations: 0 / 486.3 MB, free: 12.29 MB / 362.7 MB Notification: Performance of Templates: time 0.002847/0.4109, allocations: 0.6917 MB / 487 MB, free: 11.61 MB / 362.7 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches