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.001006/0.001007, allocations: 197.2 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 227.2 MB / 245 MB, free: 7.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008767/0.0008766, allocations: 102.3 kB / 297.3 MB, free: 6.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000216/0.000216, allocations: 8 kB / 357.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.184/0.1843, allocations: 51.48 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08617/0.2704, allocations: 77.96 MB / 487.4 MB, free: 12.65 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/0.2707, allocations: 79.95 kB / 487.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003379/0.2741, allocations: 1.464 MB / 488.9 MB, free: 11.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2741, allocations: 0 / 488.9 MB, free: 11.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.808e-06/0.2741, allocations: 0 / 488.9 MB, free: 11.12 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.0003669/0.2745, allocations: 370 kB / 489.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.2745, allocations: 8.031 kB / 489.3 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.656e-05/0.2746, allocations: 7.906 kB / 489.3 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.2748, allocations: 197.4 kB / 489.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.2748, allocations: 4 kB / 489.5 MB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.209e-05/0.2748, allocations: 8 kB / 489.5 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003383/0.2752, allocations: 192.3 kB / 489.7 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/0.2752, allocations: 0 / 489.7 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.208e-05/0.2752, allocations: 4 kB / 489.7 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.2752, allocations: 0 / 489.7 MB, free: 10.24 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.722e-05/0.2753, allocations: 43.91 kB / 489.7 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003746/0.2757, allocations: 373.8 kB / 490.1 MB, free: 9.777 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.2759, allocations: 111.8 kB / 490.2 MB, free: 9.641 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.2759, allocations: 4.125 kB / 490.2 MB, free: 9.637 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.908e-05/0.2759, allocations: 42.5 kB / 490.2 MB, free: 9.586 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.2759, allocations: 0 / 490.2 MB, free: 9.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002886/0.2762, allocations: 133.4 kB / 490.4 MB, free: 9.449 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.32e-05/0.2763, allocations: 110.8 kB / 490.5 MB, free: 9.316 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.2764, allocations: 135.3 kB / 490.6 MB, free: 9.176 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.236e-05/0.2764, allocations: 25.95 kB / 490.6 MB, free: 9.145 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.885e-05/0.2765, allocations: 92.42 kB / 490.7 MB, free: 9.047 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.097e-05/0.2765, allocations: 3.984 kB / 490.7 MB, free: 9.043 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.198e-06/0.2765, allocations: 4 kB / 490.7 MB, free: 9.039 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.438e-05/0.2766, allocations: 318.8 kB / 491 MB, free: 8.719 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.957e-05/0.2766, allocations: 11.98 kB / 491.1 MB, free: 8.707 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.039e-05/0.2767, allocations: 91.45 kB / 491.1 MB, free: 8.586 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.382e-05/0.2768, allocations: 24 kB / 491.2 MB, free: 8.562 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.2768, allocations: 3.953 kB / 491.2 MB, free: 8.559 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001788/0.277, allocations: 117.6 kB / 491.3 MB, free: 8.438 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.277, allocations: 12.03 kB / 491.3 MB, free: 8.426 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.277, allocations: 4 kB / 491.3 MB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.277, allocations: 0 / 491.3 MB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.225e-05/0.277, allocations: 11.94 kB / 491.3 MB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.2771, allocations: 8 kB / 491.3 MB, free: 8.402 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.903e-05/0.2771, allocations: 4 kB / 491.3 MB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.144e-05/0.2771, allocations: 11.98 kB / 491.3 MB, free: 8.387 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 8.755e-05/0.2772, allocations: 127.3 kB / 491.5 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000127/0.2774, allocations: 89.55 kB / 491.6 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.983e-05/0.2774, allocations: 16.72 kB / 491.6 MB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.2774, allocations: 4.453 kB / 491.6 MB, free: 8.137 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.2774, allocations: 7.922 kB / 491.6 MB, free: 8.129 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.2774, allocations: 4 kB / 491.6 MB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002084/0.2777, allocations: 177.6 kB / 491.8 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.2777, allocations: 0 / 491.8 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.965e-05/0.2777, allocations: 19.88 kB / 491.8 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.2777, allocations: 3.938 kB / 491.8 MB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.2777, allocations: 0 / 491.8 MB, free: 7.879 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.2777, allocations: 8 kB / 491.8 MB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2777, allocations: 0 / 491.8 MB, free: 7.871 MB / 362.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:7906:5-7906: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.0003477/0.2781, allocations: 363.8 kB / 492.1 MB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.193e-05/0.2781, allocations: 104.9 kB / 492.2 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.2782, allocations: 0 / 492.2 MB, free: 7.363 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.166e-05/0.2783, allocations: 8 kB / 492.3 MB, free: 7.355 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.565e-05/0.2783, allocations: 0 / 492.3 MB, free: 7.355 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.2783, allocations: 4 kB / 492.3 MB, free: 7.352 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.522e-05/0.2784, allocations: 109.6 kB / 492.4 MB, free: 7.246 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2784, allocations: 4 kB / 492.4 MB, free: 7.242 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002549/0.2786, allocations: 12 kB / 492.4 MB, free: 7.23 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 8.395e-05/0.2787, allocations: 103.1 kB / 492.5 MB, free: 7.121 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001647/0.2789, allocations: 76.41 kB / 492.6 MB, free: 7.047 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2789, allocations: 4.062 kB / 492.6 MB, free: 7.043 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.813e-05/0.279, allocations: 8 kB / 492.6 MB, free: 7.035 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.2792, allocations: 57.97 kB / 492.6 MB, free: 6.98 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003492/0.2796, allocations: 223.3 kB / 492.8 MB, free: 6.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002471/0.2799, allocations: 0.7043 MB / 493.5 MB, free: 6 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.87e-05/0.2799, allocations: 4.422 kB / 493.6 MB, free: 5.996 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.705e-05/0.2799, allocations: 15.44 kB / 493.6 MB, free: 5.98 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2799, allocations: 0 / 493.6 MB, free: 5.98 MB / 362.7 MB Notification: Performance of Templates: time 0.002336/0.2823, allocations: 0.682 MB / 494.2 MB, free: 5.309 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/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