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.001167/0.001167, allocations: 180.8 kB / 16.39 MB, free: 5.762 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.418/1.418, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.000998/0.000998, allocations: 89.7 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000269/0.000269, allocations: 4 kB / 351.1 MB, free: 15.31 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2967/0.297, allocations: 50.41 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1159/0.413, allocations: 77.15 MB / 478.6 MB, free: 3.348 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.4133, allocations: 83.88 kB / 478.7 MB, free: 3.266 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003781/0.4171, allocations: 1.454 MB / 480.2 MB, free: 1.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.4171, allocations: 3.938 kB / 480.2 MB, free: 1.816 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.4172, allocations: 0 / 480.2 MB, free: 1.816 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.0004582/0.4176, allocations: 367.1 kB / 480.5 MB, free: 1.41 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.4177, allocations: 12.03 kB / 480.6 MB, free: 1.398 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.936e-05/0.4178, allocations: 11.86 kB / 480.6 MB, free: 1.387 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.418, allocations: 195.1 kB / 480.8 MB, free: 1.16 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.003e-05/0.4181, allocations: 7.984 kB / 480.8 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.53e-05/0.4181, allocations: 8 kB / 480.8 MB, free: 1.145 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004065/0.4185, allocations: 183.6 kB / 481 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.4185, allocations: 4 kB / 481 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.4185, allocations: 0 / 481 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.4186, allocations: 3.953 kB / 481 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001167/0.4187, allocations: 43.92 kB / 481 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004974/0.4192, allocations: 377.8 kB / 481.4 MB, free: 480 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.4194, allocations: 111.8 kB / 481.5 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.4194, allocations: 8.109 kB / 481.5 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.089e-05/0.4195, allocations: 34.52 kB / 481.5 MB, free: 288 kB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.333e-06/0.4195, allocations: 0 / 481.5 MB, free: 288 kB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003474/0.4198, allocations: 133.7 kB / 481.7 MB, free: 148 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.026e-05/0.4199, allocations: 114.8 kB / 481.8 MB, free: 8 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001495/0.4201, allocations: 129.1 kB / 481.9 MB, free: 15.87 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.893e-05/0.4201, allocations: 29.7 kB / 481.9 MB, free: 15.83 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.334e-05/0.4202, allocations: 92.17 kB / 482 MB, free: 15.74 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.4202, allocations: 8 kB / 482 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.587e-06/0.4202, allocations: 0 / 482 MB, free: 15.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.4203, allocations: 322.8 kB / 482.3 MB, free: 15.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.613e-05/0.4204, allocations: 23.95 kB / 482.4 MB, free: 15.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.24e-05/0.4205, allocations: 81.38 kB / 482.4 MB, free: 15.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.617e-05/0.4205, allocations: 27.94 kB / 482.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.4205, allocations: 0 / 482.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001713/0.4207, allocations: 117.4 kB / 482.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.937e-05/0.4207, allocations: 11.98 kB / 482.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.28e-06/0.4208, allocations: 384 / 482.6 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.4208, allocations: 7.953 kB / 482.6 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.059e-05/0.4208, allocations: 7.938 kB / 482.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.4208, allocations: 4 kB / 482.6 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.231e-05/0.4209, allocations: 12.28 kB / 482.6 MB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.4209, allocations: 8 kB / 482.6 MB, free: 15.07 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.0001024/0.421, allocations: 142.7 kB / 482.8 MB, free: 14.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.4211, allocations: 81.53 kB / 482.9 MB, free: 14.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.323e-05/0.4212, allocations: 12.72 kB / 482.9 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.4212, allocations: 7.953 kB / 482.9 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4212, allocations: 0 / 482.9 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.349e-05/0.4212, allocations: 3.984 kB / 482.9 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000225/0.4215, allocations: 185.6 kB / 483.1 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.4215, allocations: 4 kB / 483.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.214e-05/0.4215, allocations: 0 / 483.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.901e-05/0.4215, allocations: 4 kB / 483.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.192e-05/0.4216, allocations: 7.984 kB / 483.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/0.4216, allocations: 4 kB / 483.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.4216, allocations: 3.953 kB / 483.1 MB, free: 14.55 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.0003958/0.422, allocations: 362.7 kB / 483.4 MB, free: 14.17 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.028e-05/0.4221, allocations: 93 kB / 483.5 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.086e-05/0.4221, allocations: 11.94 kB / 483.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.046e-05/0.4222, allocations: 4 kB / 483.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.589e-05/0.4222, allocations: 8 kB / 483.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-06/0.4222, allocations: 4 kB / 483.6 MB, free: 14.04 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.693e-05/0.4223, allocations: 109.3 kB / 483.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4223, allocations: 0 / 483.7 MB, free: 13.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002626/0.4226, allocations: 12 kB / 483.7 MB, free: 13.92 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.0001602/0.4227, allocations: 107.1 kB / 483.8 MB, free: 13.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001922/0.4229, allocations: 67.86 kB / 483.8 MB, free: 13.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.423, allocations: 4 kB / 483.8 MB, free: 13.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.675e-05/0.423, allocations: 11.98 kB / 483.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003437/0.4234, allocations: 55.98 kB / 483.9 MB, free: 13.67 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000457/0.4238, allocations: 223.7 kB / 484.1 MB, free: 13.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003287/0.4242, allocations: 0.7043 MB / 484.8 MB, free: 12.69 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.167e-05/0.4242, allocations: 8.422 kB / 484.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.351e-05/0.4243, allocations: 23.38 kB / 484.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4243, allocations: 0 / 484.9 MB, free: 12.66 MB / 362.7 MB Notification: Performance of Templates: time 0.002799/0.4271, allocations: 0.6656 MB / 485.5 MB, free: 12 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/jenkins/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