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.001119/0.001119, allocations: 196.8 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.552/1.552, allocations: 225.4 MB / 240.1 MB, free: 15.13 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008502/0.0008502, allocations: 90.92 kB / 292.1 MB, free: 5.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.238e-05/4.263e-05, allocations: 3.984 kB / 350.5 MB, free: 2.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1162, allocations: 51.49 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3985/0.5147, allocations: 77.9 MB / 479.9 MB, free: 11.53 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00018/0.5149, allocations: 76.64 kB / 480 MB, free: 11.49 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002959/0.5179, allocations: 1.448 MB / 481.4 MB, free: 10.24 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.113e-06/0.5179, allocations: 0 / 481.4 MB, free: 10.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.5179, allocations: 0 / 481.4 MB, free: 10.24 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.0002496/0.5182, allocations: 360 kB / 481.8 MB, free: 9.855 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.5182, allocations: 8.031 kB / 481.8 MB, free: 9.848 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.69e-05/0.5183, allocations: 15.81 kB / 481.8 MB, free: 9.836 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.5184, allocations: 194.7 kB / 482 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.5185, allocations: 9.047 kB / 482 MB, free: 9.605 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.517e-05/0.5185, allocations: 7.25 kB / 482 MB, free: 9.602 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002808/0.5188, allocations: 178.2 kB / 482.2 MB, free: 9.445 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.5188, allocations: 4 kB / 482.2 MB, free: 9.441 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.5188, allocations: 0 / 482.2 MB, free: 9.441 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.971e-06/0.5188, allocations: 5.5 kB / 482.2 MB, free: 9.438 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.351e-05/0.5189, allocations: 30.56 kB / 482.2 MB, free: 9.418 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002973/0.5192, allocations: 374 kB / 482.6 MB, free: 9.016 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001123/0.5193, allocations: 109 kB / 482.7 MB, free: 8.902 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.243e-05/0.5194, allocations: 56.77 kB / 482.8 MB, free: 8.852 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.5194, allocations: 0 / 482.8 MB, free: 8.852 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.837e-05/0.5194, allocations: 49.67 kB / 482.8 MB, free: 8.797 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 9.12e-07/0.5194, allocations: 0 / 482.8 MB, free: 8.797 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.000208/0.5197, allocations: 92.97 kB / 482.9 MB, free: 8.715 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.5197, allocations: 114.2 kB / 483 MB, free: 8.582 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.967e-05/0.5198, allocations: 131.2 kB / 483.1 MB, free: 8.457 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.137e-06/0.5198, allocations: 25.7 kB / 483.2 MB, free: 8.426 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.18e-05/0.5199, allocations: 87.86 kB / 483.3 MB, free: 8.336 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.004e-05/0.5199, allocations: 13.47 kB / 483.3 MB, free: 8.328 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.867e-06/0.5199, allocations: 3.188 kB / 483.3 MB, free: 8.328 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.291e-05/0.5199, allocations: 321.9 kB / 483.6 MB, free: 8.008 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.086e-05/0.52, allocations: 11.12 kB / 483.6 MB, free: 8 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.836e-05/0.52, allocations: 79.77 kB / 483.7 MB, free: 7.895 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.604e-05/0.52, allocations: 30.94 kB / 483.7 MB, free: 7.867 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.5201, allocations: 0 / 483.7 MB, free: 7.867 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001197/0.5202, allocations: 105.7 kB / 483.8 MB, free: 7.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.5202, allocations: 8 kB / 483.8 MB, free: 7.762 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.5202, allocations: 8.438 kB / 483.8 MB, free: 7.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.5202, allocations: 4.344 kB / 483.8 MB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.846e-05/0.5203, allocations: 11.98 kB / 483.8 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.5203, allocations: 0 / 483.8 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.254e-05/0.5203, allocations: 7.75 kB / 483.8 MB, free: 7.734 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.5203, allocations: 8 kB / 483.9 MB, free: 7.727 MB / 346.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 () * 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 4.426e-05/0.5204, allocations: 118 kB / 484 MB, free: 7.609 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.5205, allocations: 82.66 kB / 484.1 MB, free: 7.535 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.999e-05/0.5206, allocations: 18.28 kB / 484.1 MB, free: 7.527 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.5206, allocations: 5.406 kB / 484.1 MB, free: 7.523 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.5206, allocations: 4 kB / 484.1 MB, free: 7.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.5206, allocations: 4.859 kB / 484.1 MB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001808/0.5208, allocations: 179.1 kB / 484.3 MB, free: 7.305 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.5208, allocations: 3.953 kB / 484.3 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.558e-05/0.5208, allocations: 7.984 kB / 484.3 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.5208, allocations: 0 / 484.3 MB, free: 7.293 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-06/0.5208, allocations: 4 kB / 484.3 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.5208, allocations: 1.312 kB / 484.3 MB, free: 7.289 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.5208, allocations: 3.938 kB / 484.3 MB, free: 7.285 MB / 346.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 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/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 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/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:7819:5-7819: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.0002879/0.5211, allocations: 365.8 kB / 484.6 MB, free: 6.922 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.493e-05/0.5212, allocations: 96.94 kB / 484.7 MB, free: 6.812 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.402e-05/0.5212, allocations: 4 kB / 484.7 MB, free: 6.809 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.187e-05/0.5213, allocations: 3.875 kB / 484.7 MB, free: 6.809 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.528e-05/0.5213, allocations: 7.984 kB / 484.7 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-06/0.5213, allocations: 0 / 484.7 MB, free: 6.801 MB / 346.7 MB Notification: Performance of sorting global known variables: time 4.324e-05/0.5214, allocations: 108.6 kB / 484.9 MB, free: 6.703 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.42e-07/0.5214, allocations: 0 / 484.9 MB, free: 6.703 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002485/0.5216, allocations: 15.12 kB / 484.9 MB, free: 6.691 MB / 346.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 () * 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 7.259e-05/0.5217, allocations: 102.4 kB / 485 MB, free: 6.586 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001154/0.5218, allocations: 60.81 kB / 485 MB, free: 6.539 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.5219, allocations: 0 / 485 MB, free: 6.539 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.474e-05/0.5219, allocations: 4 kB / 485 MB, free: 6.535 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.5221, allocations: 57.91 kB / 485.1 MB, free: 6.492 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002337/0.5224, allocations: 157.2 kB / 485.2 MB, free: 6.336 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001147/0.5225, allocations: 0.7077 MB / 486 MB, free: 5.605 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.699e-05/0.5225, allocations: 5.5 kB / 486 MB, free: 5.602 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.548e-05/0.5226, allocations: 11.44 kB / 486 MB, free: 5.59 MB / 346.7 MB Notification: Performance of SimCode: time 3.71e-07/0.5226, allocations: 0 / 486 MB, free: 5.59 MB / 346.7 MB Notification: Performance of Templates: time 0.002268/0.5249, allocations: 0.6889 MB / 486.7 MB, free: 4.953 MB / 346.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/jenkins/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