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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001433/0.001433, allocations: 204.3 kB / 18.11 MB, free: 3.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 226.5 MB / 245.4 MB, free: 8.156 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008327/0.0008326, allocations: 105.1 kB / 297.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002551/0.0002551, allocations: 4 kB / 358.1 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2881/0.2884, allocations: 51.29 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1121/0.4006, allocations: 77.89 MB / 487.3 MB, free: 13.63 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.4009, allocations: 75.95 kB / 487.3 MB, free: 13.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003592/0.4045, allocations: 1.454 MB / 488.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4045, allocations: 0 / 488.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.037e-05/0.4045, allocations: 7.938 kB / 488.8 MB, free: 12.1 MB / 362.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.000435/0.405, allocations: 371.2 kB / 489.2 MB, free: 11.68 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.405, allocations: 8.031 kB / 489.2 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.11e-05/0.4051, allocations: 8.844 kB / 489.2 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.4053, allocations: 196.1 kB / 489.4 MB, free: 11.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.4053, allocations: 8.375 kB / 489.4 MB, free: 11.43 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.4053, allocations: 12.38 kB / 489.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003367/0.4057, allocations: 181.1 kB / 489.6 MB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.4057, allocations: 4.188 kB / 489.6 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.4057, allocations: 3.938 kB / 489.6 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.4057, allocations: 4 kB / 489.6 MB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001011/0.4059, allocations: 43.91 kB / 489.6 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004074/0.4063, allocations: 373.9 kB / 490 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000164/0.4064, allocations: 115.8 kB / 490.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.4066, allocations: 58.62 kB / 490.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.4066, allocations: 4 kB / 490.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.781e-05/0.4067, allocations: 42.5 kB / 490.2 MB, free: 10.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 3.136e-06/0.4067, allocations: 0 / 490.2 MB, free: 10.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003435/0.407, allocations: 133.4 kB / 490.3 MB, free: 10.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.922e-05/0.4071, allocations: 114.8 kB / 490.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.4073, allocations: 146 kB / 490.6 MB, free: 10.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.415e-05/0.4073, allocations: 25.7 kB / 490.6 MB, free: 10.03 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.116e-05/0.4073, allocations: 84.8 kB / 490.7 MB, free: 9.941 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.4074, allocations: 15.89 kB / 490.7 MB, free: 9.926 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-06/0.4074, allocations: 0 / 490.7 MB, free: 9.926 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.4075, allocations: 314.8 kB / 491 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.844e-05/0.4076, allocations: 23.92 kB / 491 MB, free: 9.586 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.737e-05/0.4076, allocations: 81.44 kB / 491.1 MB, free: 9.473 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.4078, allocations: 118.4 kB / 491.2 MB, free: 9.324 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.4078, allocations: 4 kB / 491.2 MB, free: 9.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001767/0.408, allocations: 109.4 kB / 491.4 MB, free: 9.207 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.408, allocations: 4 kB / 491.4 MB, free: 9.203 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.408, allocations: 4 kB / 491.4 MB, free: 9.199 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.408, allocations: 8.344 kB / 491.4 MB, free: 9.191 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.981e-05/0.4081, allocations: 11.92 kB / 491.4 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.834e-06/0.4081, allocations: 0 / 491.4 MB, free: 9.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.178e-05/0.4081, allocations: 8 kB / 491.4 MB, free: 9.172 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.4082, allocations: 8 kB / 491.4 MB, free: 9.164 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 0.000111/0.4083, allocations: 131.3 kB / 491.5 MB, free: 9.027 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000165/0.4085, allocations: 85.53 kB / 491.6 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.425e-05/0.4085, allocations: 16.7 kB / 491.6 MB, free: 8.922 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.4085, allocations: 4 kB / 491.6 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.4085, allocations: 0 / 491.6 MB, free: 8.918 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.4085, allocations: 4 kB / 491.6 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002341/0.4088, allocations: 185.6 kB / 491.8 MB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.4088, allocations: 7.938 kB / 491.8 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.93e-05/0.4088, allocations: 11.98 kB / 491.8 MB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4088, allocations: 0 / 491.8 MB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.4088, allocations: 4 kB / 491.8 MB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.4088, allocations: 0 / 491.8 MB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4089, allocations: 3.938 kB / 491.8 MB, free: 8.656 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.0003802/0.4092, allocations: 344.4 kB / 492.2 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.103e-05/0.4093, allocations: 97 kB / 492.3 MB, free: 8.188 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.501e-05/0.4093, allocations: 4 kB / 492.3 MB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.941e-05/0.4094, allocations: 4 kB / 492.3 MB, free: 8.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.063e-05/0.4095, allocations: 3.984 kB / 492.3 MB, free: 8.176 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-06/0.4095, allocations: 8 kB / 492.3 MB, free: 8.168 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.571e-05/0.4096, allocations: 101.9 kB / 492.4 MB, free: 8.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4096, allocations: 3.938 kB / 492.4 MB, free: 8.066 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002637/0.4098, allocations: 12 kB / 492.4 MB, free: 8.055 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.0001244/0.41, allocations: 111.1 kB / 492.5 MB, free: 7.934 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001659/0.4102, allocations: 75.78 kB / 492.6 MB, free: 7.859 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.4102, allocations: 0 / 492.6 MB, free: 7.859 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.9e-05/0.4102, allocations: 4 kB / 492.6 MB, free: 7.855 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004579/0.4107, allocations: 67.09 kB / 492.7 MB, free: 7.793 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003963/0.4111, allocations: 231.1 kB / 492.9 MB, free: 7.535 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002723/0.4114, allocations: 0.7043 MB / 493.6 MB, free: 6.805 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.075e-05/0.4114, allocations: 8.422 kB / 493.6 MB, free: 6.797 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.635e-05/0.4114, allocations: 11.44 kB / 493.6 MB, free: 6.785 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4114, allocations: 0 / 493.6 MB, free: 6.785 MB / 362.7 MB Notification: Performance of Templates: time 0.002592/0.414, allocations: 0.6728 MB / 494.3 MB, free: 6.117 MB / 362.7 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","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches