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.0009449/0.0009448, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.294/1.294, allocations: 221.3 MB / 235.5 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008525/0.0008525, allocations: 106.1 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.194e-05/2.197e-05, allocations: 4 kB / 343.8 MB, free: 4.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08828/0.08832, allocations: 50.41 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2707/0.3591, allocations: 77.1 MB / 471.3 MB, free: 10.49 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001923/0.3593, allocations: 71.95 kB / 471.4 MB, free: 10.42 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00347/0.3628, allocations: 1.443 MB / 472.9 MB, free: 8.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3628, allocations: 3.938 kB / 472.9 MB, free: 8.977 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.121e-05/0.3629, allocations: 4 kB / 472.9 MB, free: 8.973 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.0003191/0.3632, allocations: 359 kB / 473.2 MB, free: 8.578 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.3632, allocations: 8.031 kB / 473.2 MB, free: 8.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.864e-05/0.3633, allocations: 15.77 kB / 473.2 MB, free: 8.555 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001891/0.3635, allocations: 196.1 kB / 473.4 MB, free: 8.324 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.192e-05/0.3635, allocations: 11.98 kB / 473.4 MB, free: 8.312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.675e-05/0.3635, allocations: 4 kB / 473.4 MB, free: 8.309 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003252/0.3639, allocations: 175.2 kB / 473.6 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.3639, allocations: 0 / 473.6 MB, free: 8.117 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.146e-05/0.3639, allocations: 4 kB / 473.6 MB, free: 8.113 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.3639, allocations: 3.953 kB / 473.6 MB, free: 8.109 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.711e-05/0.364, allocations: 31.94 kB / 473.7 MB, free: 8.078 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003693/0.3644, allocations: 374 kB / 474 MB, free: 7.656 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001327/0.3645, allocations: 108.9 kB / 474.1 MB, free: 7.523 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.455e-05/0.3646, allocations: 66.7 kB / 474.2 MB, free: 7.449 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.527e-05/0.3646, allocations: 4 kB / 474.2 MB, free: 7.445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.3647, allocations: 38.5 kB / 474.2 MB, free: 7.398 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.373e-06/0.3647, allocations: 0 / 474.2 MB, free: 7.398 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002297/0.3649, allocations: 93.53 kB / 474.3 MB, free: 7.301 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.499e-05/0.365, allocations: 114.8 kB / 474.4 MB, free: 7.164 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.3651, allocations: 142.6 kB / 474.6 MB, free: 7.016 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.3651, allocations: 25.7 kB / 474.6 MB, free: 6.984 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.914e-05/0.3652, allocations: 88.41 kB / 474.7 MB, free: 6.891 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.467e-05/0.3652, allocations: 11.91 kB / 474.7 MB, free: 6.879 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-06/0.3652, allocations: 0 / 474.7 MB, free: 6.879 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.908e-05/0.3653, allocations: 318.8 kB / 475 MB, free: 6.559 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.395e-05/0.3653, allocations: 12 kB / 475 MB, free: 6.547 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.776e-05/0.3654, allocations: 81.39 kB / 475.1 MB, free: 6.434 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.114e-05/0.3654, allocations: 27.92 kB / 475.1 MB, free: 6.406 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.3654, allocations: 0 / 475.1 MB, free: 6.406 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001434/0.3656, allocations: 113.5 kB / 475.2 MB, free: 6.289 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.3656, allocations: 8 kB / 475.2 MB, free: 6.281 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.3656, allocations: 4.734 kB / 475.3 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.32e-05/0.3657, allocations: 4 kB / 475.3 MB, free: 6.273 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.296e-05/0.3657, allocations: 11.98 kB / 475.3 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.3657, allocations: 7.938 kB / 475.3 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.359e-05/0.3658, allocations: 4 kB / 475.3 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/0.3658, allocations: 4 kB / 475.3 MB, free: 6.246 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 6.26e-05/0.3658, allocations: 118.7 kB / 475.4 MB, free: 6.125 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.366, allocations: 89.56 kB / 475.5 MB, free: 6.031 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.821e-05/0.366, allocations: 8.625 kB / 475.5 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-06/0.366, allocations: 7.953 kB / 475.5 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.366, allocations: 0 / 475.5 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.3661, allocations: 3.984 kB / 475.5 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002239/0.3663, allocations: 181.6 kB / 475.7 MB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3663, allocations: 0 / 475.7 MB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.986e-05/0.3663, allocations: 11.92 kB / 475.7 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.3663, allocations: 0 / 475.7 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.3663, allocations: 8 kB / 475.7 MB, free: 5.766 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.3664, allocations: 4 kB / 475.7 MB, free: 5.762 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3664, allocations: 3.953 kB / 475.7 MB, free: 5.758 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.0003131/0.3667, allocations: 359.8 kB / 476.1 MB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.139e-05/0.3667, allocations: 97 kB / 476.2 MB, free: 5.262 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.3668, allocations: 7.953 kB / 476.2 MB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.35e-05/0.3669, allocations: 4 kB / 476.2 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.258e-05/0.3669, allocations: 7.922 kB / 476.2 MB, free: 5.242 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.3669, allocations: 4 kB / 476.2 MB, free: 5.238 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.14e-05/0.367, allocations: 104.7 kB / 476.3 MB, free: 5.137 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.367, allocations: 4 kB / 476.3 MB, free: 5.133 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002533/0.3673, allocations: 16 kB / 476.3 MB, free: 5.117 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 0.0001049/0.3674, allocations: 95.25 kB / 476.4 MB, free: 5.016 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001295/0.3675, allocations: 64.5 kB / 476.5 MB, free: 4.953 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3675, allocations: 0 / 476.5 MB, free: 4.953 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.827e-05/0.3675, allocations: 12 kB / 476.5 MB, free: 4.941 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.3678, allocations: 49.27 kB / 476.5 MB, free: 4.895 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002755/0.3681, allocations: 142.9 kB / 476.7 MB, free: 4.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000222/0.3683, allocations: 0.7082 MB / 477.4 MB, free: 3.996 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.212e-05/0.3684, allocations: 12.94 kB / 477.4 MB, free: 3.984 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.864e-05/0.3684, allocations: 11.44 kB / 477.4 MB, free: 3.973 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.3684, allocations: 0 / 477.4 MB, free: 3.973 MB / 346.7 MB Notification: Performance of Templates: time 0.002534/0.371, allocations: 0.6865 MB / 478.1 MB, free: 3.293 MB / 346.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