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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001551/0.001551, allocations: 111.9 kB / 17.68 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001496/0.001497, allocations: 192 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.545/1.545, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 50.58 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1401, allocations: 49.45 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.005153/0.1454, allocations: 1.586 MB / 353.1 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006887/0.1462, allocations: 175.3 kB / 353.3 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.1463, allocations: 0 / 353.3 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.623e-05/0.1465, allocations: 11.92 kB / 353.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001974/0.1467, allocations: 11.88 kB / 353.3 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003482/0.1471, allocations: 39.89 kB / 353.3 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001692/0.1472, allocations: 63.83 kB / 353.4 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001852/0.1474, allocations: 36.22 kB / 353.4 MB, free: 1.746 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.309e-05/0.1475, allocations: 27.84 kB / 353.4 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.232e-05/0.1476, allocations: 27.86 kB / 353.5 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.596e-05/0.1476, allocations: 8 kB / 353.5 MB, free: 1.684 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.887e-05/0.1476, allocations: 11.94 kB / 353.5 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.565e-05/0.1477, allocations: 11.98 kB / 353.5 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.403e-05/0.1478, allocations: 43.73 kB / 353.6 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002294/0.1481, allocations: 79.64 kB / 353.6 MB, free: 1.539 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.876e-06/0.1481, allocations: 0 / 353.6 MB, free: 1.539 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.1481, allocations: 0 / 353.6 MB, free: 1.539 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.1481, allocations: 0 / 353.6 MB, free: 1.539 MB / 286.1 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.0006966/0.1488, allocations: 383.2 kB / 354 MB, free: 1.113 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.434e-05/0.1489, allocations: 11.89 kB / 354 MB, free: 1.102 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.226e-05/0.149, allocations: 20.73 kB / 354 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004639/0.1494, allocations: 208 kB / 354.2 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.283e-05/0.1495, allocations: 12.31 kB / 354.2 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.1495, allocations: 4.375 kB / 354.3 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005356/0.15, allocations: 186.3 kB / 354.4 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.1501, allocations: 192 / 354.4 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.987e-05/0.1501, allocations: 3.938 kB / 354.4 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.1501, allocations: 0 / 354.4 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001503/0.1503, allocations: 43.92 kB / 354.5 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006248/0.1509, allocations: 373.8 kB / 354.8 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002196/0.1511, allocations: 111.8 kB / 355 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001735/0.1513, allocations: 62.67 kB / 355 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.666e-05/0.1514, allocations: 11.92 kB / 355 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.737e-05/0.1514, allocations: 38.56 kB / 355.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 3.907e-06/0.1514, allocations: 0 / 355.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.000422/0.1519, allocations: 129.4 kB / 355.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.152, allocations: 114.8 kB / 355.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001515/0.1521, allocations: 143.9 kB / 355.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.236e-05/0.1522, allocations: 29.7 kB / 355.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.637e-05/0.1522, allocations: 96.66 kB / 355.6 MB, free: 15.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.269e-05/0.1523, allocations: 0 / 355.6 MB, free: 15.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.941e-05/0.1523, allocations: 41.61 kB / 355.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002631/0.1526, allocations: 310.8 kB / 355.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.78e-05/0.1527, allocations: 15.98 kB / 355.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.309e-05/0.1527, allocations: 85.81 kB / 356 MB, free: 14.84 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001619/0.1529, allocations: 113.2 kB / 356.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1529, allocations: 0 / 356.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001873/0.1531, allocations: 105.5 kB / 356.2 MB, free: 14.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.1532, allocations: 11.94 kB / 356.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.1532, allocations: 4 kB / 356.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.1532, allocations: 3.984 kB / 356.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.859e-05/0.1532, allocations: 15.94 kB / 356.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.1533, allocations: 0 / 356.3 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.172e-05/0.1533, allocations: 12.19 kB / 356.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.847e-05/0.1534, allocations: 12 kB / 356.3 MB, free: 14.53 MB / 302.1 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 (step.y,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,sample2.y,hold1.y,hold1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001299/0.1535, allocations: 137.6 kB / 356.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.1537, allocations: 85.53 kB / 356.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.64e-05/0.1537, allocations: 16.72 kB / 356.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1537, allocations: 3.938 kB / 356.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.1538, allocations: 4 kB / 356.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1538, allocations: 0 / 356.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003105/0.1541, allocations: 193.4 kB / 356.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1541, allocations: 4 kB / 356.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.307e-05/0.1541, allocations: 4 kB / 356.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.1541, allocations: 0 / 356.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.1542, allocations: 8 kB / 356.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.019e-06/0.1542, allocations: 3.984 kB / 356.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.1542, allocations: 0 / 356.7 MB, free: 14.01 MB / 302.1 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:8011:5-8011: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.0004848/0.1547, allocations: 344.9 kB / 357.1 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.656e-05/0.1548, allocations: 97 kB / 357.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.964e-05/0.1548, allocations: 0 / 357.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.1549, allocations: 4 kB / 357.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.155, allocations: 7.984 kB / 357.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.155, allocations: 4 kB / 357.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.115e-05/0.1551, allocations: 109.8 kB / 357.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.013e-06/0.1551, allocations: 0 / 357.3 MB, free: 13.42 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002915/0.1554, allocations: 11.94 kB / 357.3 MB, free: 13.41 MB / 302.1 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 (step.y,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000176/0.1556, allocations: 111.7 kB / 357.4 MB, free: 13.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002192/0.1558, allocations: 64.58 kB / 357.5 MB, free: 13.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1558, allocations: 8 kB / 357.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.461e-05/0.1558, allocations: 11.98 kB / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005039/0.1564, allocations: 55.89 kB / 357.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005335/0.1569, allocations: 215.7 kB / 357.8 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.1573, allocations: 0.7003 MB / 358.5 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.416e-05/0.1573, allocations: 8.438 kB / 358.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.993e-05/0.1574, allocations: 11.44 kB / 358.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of SimCode: time 9.41e-07/0.1574, allocations: 0 / 358.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of Templates: time 0.00406/0.1614, allocations: 0.7864 MB / 359.3 MB, free: 11.38 MB / 302.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches