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.001079/0.001079, allocations: 93.05 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001161/0.001161, allocations: 201.9 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.638/1.638, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003224/0.0003221, allocations: 7.984 kB / 307.7 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1311, allocations: 51.52 MB / 359.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002455/0.1336, allocations: 1.32 MB / 360.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005332/0.1342, allocations: 163.5 kB / 360.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.1344, allocations: 0 / 360.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 5.054e-05/0.1344, allocations: 3.938 kB / 360.8 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.1346, allocations: 15.92 kB / 360.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003392/0.1349, allocations: 39.22 kB / 360.8 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001317/0.1351, allocations: 59.78 kB / 360.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001461/0.1352, allocations: 40.19 kB / 360.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.046e-05/0.1353, allocations: 19.92 kB / 360.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.38e-05/0.1353, allocations: 23.8 kB / 360.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.381e-05/0.1354, allocations: 4 kB / 361 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.181e-05/0.1354, allocations: 0 / 361 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.399e-05/0.1355, allocations: 15.92 kB / 361 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.88e-05/0.1355, allocations: 49.52 kB / 361 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.1357, allocations: 71.69 kB / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1357, allocations: 4 kB / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1357, allocations: 0 / 361.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.939e-06/0.1357, allocations: 0 / 361.1 MB, free: 11.46 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.0005118/0.1362, allocations: 375.3 kB / 361.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.1363, allocations: 8.031 kB / 361.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.862e-05/0.1363, allocations: 8.844 kB / 361.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/0.1366, allocations: 204 kB / 361.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.1366, allocations: 8.375 kB / 361.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.813e-05/0.1366, allocations: 4.375 kB / 361.7 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004598/0.1371, allocations: 184.8 kB / 361.9 MB, free: 10.58 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.1371, allocations: 4.188 kB / 361.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.546e-05/0.1372, allocations: 7.938 kB / 361.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.1372, allocations: 0 / 361.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001206/0.1373, allocations: 47.92 kB / 361.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004589/0.1378, allocations: 361.9 kB / 362.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/0.138, allocations: 119.6 kB / 362.4 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.1381, allocations: 66.81 kB / 362.5 MB, free: 9.891 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.875e-05/0.1381, allocations: 3.984 kB / 362.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.1381, allocations: 38.56 kB / 362.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.593e-06/0.1382, allocations: 4 kB / 362.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003643/0.1385, allocations: 133.5 kB / 362.6 MB, free: 9.699 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/0.1386, allocations: 106.8 kB / 362.7 MB, free: 9.57 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001331/0.1387, allocations: 145.7 kB / 362.9 MB, free: 9.418 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.1388, allocations: 25.7 kB / 362.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.767e-05/0.1388, allocations: 84.67 kB / 363 MB, free: 9.297 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.07e-05/0.1389, allocations: 20.27 kB / 363 MB, free: 9.277 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.1389, allocations: 21.66 kB / 363 MB, free: 9.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.139, allocations: 322.8 kB / 363.3 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.775e-05/0.1391, allocations: 19.92 kB / 363.4 MB, free: 8.906 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.86e-05/0.1392, allocations: 85.38 kB / 363.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.1393, allocations: 109.2 kB / 363.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1393, allocations: 0 / 363.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002064/0.1396, allocations: 121.3 kB / 363.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.079e-05/0.1396, allocations: 8 kB / 363.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.1396, allocations: 0 / 363.7 MB, free: 8.516 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1396, allocations: 4 kB / 363.7 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.216e-05/0.1396, allocations: 7.938 kB / 363.7 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.1397, allocations: 7.984 kB / 363.7 MB, free: 8.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.969e-05/0.1397, allocations: 12.28 kB / 363.7 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.1398, allocations: 12 kB / 363.7 MB, free: 8.473 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 9.845e-05/0.1399, allocations: 133.7 kB / 363.9 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.14, allocations: 77.59 kB / 363.9 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.61e-05/0.1401, allocations: 20.7 kB / 364 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.066e-06/0.1401, allocations: 0 / 364 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.1401, allocations: 0 / 364 MB, free: 8.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.677e-06/0.1401, allocations: 7.984 kB / 364 MB, free: 8.223 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/0.1403, allocations: 205.3 kB / 364.2 MB, free: 7.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.1404, allocations: 4 kB / 364.2 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.677e-05/0.1404, allocations: 4 kB / 364.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1404, allocations: 0 / 364.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.1404, allocations: 4 kB / 364.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.1404, allocations: 0 / 364.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1404, allocations: 0 / 364.2 MB, free: 7.961 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:7947:5-7947: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.0004888/0.1409, allocations: 355 kB / 364.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.1411, allocations: 101 kB / 364.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/0.1411, allocations: 4 kB / 364.6 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.236e-05/0.1412, allocations: 4 kB / 364.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.1413, allocations: 4 kB / 364.6 MB, free: 7.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.1413, allocations: 4 kB / 364.6 MB, free: 7.461 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.905e-05/0.1414, allocations: 109.8 kB / 364.7 MB, free: 7.355 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1414, allocations: 96 / 364.7 MB, free: 7.355 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003053/0.1417, allocations: 19.94 kB / 364.8 MB, free: 7.336 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.0001384/0.1418, allocations: 95.25 kB / 364.9 MB, free: 7.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001925/0.142, allocations: 79.91 kB / 364.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.142, allocations: 0 / 364.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.544e-05/0.1421, allocations: 8 kB / 364.9 MB, free: 7.145 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004674/0.1426, allocations: 51.89 kB / 365 MB, free: 7.094 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004834/0.1431, allocations: 247.5 kB / 365.2 MB, free: 6.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004198/0.1435, allocations: 0.7004 MB / 365.9 MB, free: 6.094 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.506e-05/0.1435, allocations: 4.438 kB / 365.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.391e-05/0.1436, allocations: 15.44 kB / 365.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1436, allocations: 4 kB / 366 MB, free: 6.07 MB / 302.1 MB Notification: Performance of Templates: time 0.003875/0.1475, allocations: 0.703 MB / 366.7 MB, free: 5.371 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.0.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