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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001776/0.001777, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001852/0.001852, allocations: 214.4 kB / 18.59 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.711/1.711, allocations: 227.4 MB / 246.8 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 72.75 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1512, allocations: 50.54 MB / 357.5 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.00453/0.1558, allocations: 1.598 MB / 359.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005541/0.1564, allocations: 175.5 kB / 359.3 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.1566, allocations: 3.938 kB / 359.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.904e-05/0.1567, allocations: 11.88 kB / 359.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001657/0.1568, allocations: 7.938 kB / 359.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.1572, allocations: 55.81 kB / 359.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001356/0.1573, allocations: 59.84 kB / 359.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001612/0.1575, allocations: 36.19 kB / 359.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.193e-05/0.1575, allocations: 27.92 kB / 359.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.713e-05/0.1576, allocations: 27.8 kB / 359.5 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.045e-05/0.1576, allocations: 8 kB / 359.5 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.613e-05/0.1577, allocations: 4 kB / 359.5 MB, free: 12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.221e-05/0.1577, allocations: 19.92 kB / 359.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.469e-05/0.1578, allocations: 35.8 kB / 359.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001705/0.158, allocations: 71.7 kB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.158, allocations: 0 / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.158, allocations: 0 / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.158, allocations: 0 / 359.7 MB, free: 11.87 MB / 302.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.0006242/0.1586, allocations: 399.1 kB / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.214e-05/0.1587, allocations: 8.031 kB / 360.1 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.553e-05/0.1588, allocations: 16.83 kB / 360.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003333/0.1591, allocations: 196.1 kB / 360.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.615e-05/0.1591, allocations: 4.375 kB / 360.3 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.187e-05/0.1592, allocations: 8.375 kB / 360.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004379/0.1596, allocations: 186.3 kB / 360.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1596, allocations: 192 / 360.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.413e-05/0.1597, allocations: 7.875 kB / 360.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.934e-06/0.1597, allocations: 4 kB / 360.5 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001055/0.1598, allocations: 35.98 kB / 360.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005285/0.1603, allocations: 369.8 kB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002048/0.1605, allocations: 115.8 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.1606, allocations: 62.69 kB / 361.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.239e-05/0.1607, allocations: 7.984 kB / 361.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.938e-05/0.1607, allocations: 38.5 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.1607, allocations: 4 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003938/0.1611, allocations: 129.4 kB / 361.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001062/0.1613, allocations: 115.1 kB / 361.3 MB, free: 9.957 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001659/0.1614, allocations: 140.4 kB / 361.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.998e-05/0.1615, allocations: 29.7 kB / 361.5 MB, free: 9.777 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.152e-05/0.1615, allocations: 84.42 kB / 361.6 MB, free: 9.688 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.1616, allocations: 11.98 kB / 361.6 MB, free: 9.676 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.987e-05/0.1616, allocations: 33.61 kB / 361.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.1618, allocations: 318.8 kB / 361.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.929e-05/0.1619, allocations: 19.92 kB / 362 MB, free: 9.297 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.687e-05/0.162, allocations: 77.44 kB / 362 MB, free: 9.188 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001513/0.1621, allocations: 117.2 kB / 362.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1621, allocations: 0 / 362.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001999/0.1623, allocations: 117.3 kB / 362.3 MB, free: 8.918 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.808e-05/0.1624, allocations: 8 kB / 362.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.1624, allocations: 0 / 362.3 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.1624, allocations: 4.344 kB / 362.3 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.215e-05/0.1624, allocations: 11.98 kB / 362.3 MB, free: 8.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.1624, allocations: 4 kB / 362.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.153e-05/0.1625, allocations: 11.94 kB / 362.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.1625, allocations: 7.938 kB / 362.3 MB, free: 8.871 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.0001145/0.1627, allocations: 133.4 kB / 362.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.1628, allocations: 81.53 kB / 362.5 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.381e-05/0.1629, allocations: 16.7 kB / 362.5 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.1629, allocations: 11.98 kB / 362.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.1629, allocations: 0 / 362.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1629, allocations: 480 / 362.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002985/0.1632, allocations: 201.4 kB / 362.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1632, allocations: 0 / 362.7 MB, free: 8.375 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.585e-05/0.1632, allocations: 4 kB / 362.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1632, allocations: 0 / 362.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.118e-05/0.1633, allocations: 7.938 kB / 362.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.1633, allocations: 7.938 kB / 362.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.1633, allocations: 0 / 362.8 MB, free: 8.355 MB / 302.1 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:7956:5-7956: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.0005009/0.1638, allocations: 340.3 kB / 363.1 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.176e-05/0.1639, allocations: 93 kB / 363.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.1639, allocations: 8 kB / 363.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.197e-05/0.164, allocations: 4 kB / 363.2 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.92e-05/0.164, allocations: 4 kB / 363.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.808e-06/0.1641, allocations: 3.984 kB / 363.2 MB, free: 7.871 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.044e-05/0.1641, allocations: 107.2 kB / 363.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1641, allocations: 0 / 363.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.1644, allocations: 16 kB / 363.3 MB, free: 7.75 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.0001399/0.1646, allocations: 99.25 kB / 363.4 MB, free: 7.641 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002027/0.1648, allocations: 71.84 kB / 363.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1648, allocations: 0 / 363.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.393e-05/0.1649, allocations: 19.92 kB / 363.5 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004461/0.1653, allocations: 50.45 kB / 363.6 MB, free: 7.504 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005109/0.1658, allocations: 220.4 kB / 363.8 MB, free: 7.254 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004015/0.1662, allocations: 0.704 MB / 364.5 MB, free: 6.523 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.492e-05/0.1663, allocations: 8.422 kB / 364.5 MB, free: 6.512 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.272e-05/0.1663, allocations: 15.44 kB / 364.5 MB, free: 6.5 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1663, allocations: 0 / 364.5 MB, free: 6.5 MB / 302.1 MB Notification: Performance of Templates: time 0.00364/0.17, allocations: 0.7835 MB / 365.3 MB, free: 5.723 MB / 302.1 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.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches