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.001098/0.001098, allocations: 91.56 kB / 16.65 MB, free: 6.59 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.001279/0.001279, allocations: 183.4 kB / 17.56 MB, free: 6.203 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.629/1.629, allocations: 223.3 MB / 241.6 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003698/0.0003698, allocations: 7.938 kB / 301.4 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1371, allocations: 50.42 MB / 351.8 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.00215/0.1393, allocations: 1.312 MB / 353.1 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005389/0.1399, allocations: 167.5 kB / 353.3 MB, free: 2.203 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.14, allocations: 7.938 kB / 353.3 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.216e-05/0.1401, allocations: 3.938 kB / 353.3 MB, free: 2.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.1402, allocations: 3.984 kB / 353.3 MB, free: 2.188 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002989/0.1405, allocations: 55.14 kB / 353.4 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001242/0.1407, allocations: 55.84 kB / 353.4 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.1408, allocations: 32.22 kB / 353.5 MB, free: 2.051 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.204e-05/0.1409, allocations: 19.91 kB / 353.5 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.204e-05/0.1409, allocations: 19.86 kB / 353.5 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.577e-05/0.141, allocations: 4 kB / 353.5 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.164e-05/0.141, allocations: 3.938 kB / 353.5 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.996e-05/0.141, allocations: 15.98 kB / 353.5 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.457e-05/0.1411, allocations: 57.44 kB / 353.6 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001262/0.1412, allocations: 67.7 kB / 353.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.1413, allocations: 0 / 353.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.727e-06/0.1413, allocations: 0 / 353.6 MB, free: 1.859 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.359e-06/0.1413, allocations: 3.938 kB / 353.7 MB, free: 1.855 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.0005206/0.1418, allocations: 375.5 kB / 354 MB, free: 1.438 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.1419, allocations: 11.97 kB / 354 MB, free: 1.426 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.09e-05/0.1419, allocations: 8.844 kB / 354 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002476/0.1422, allocations: 200.1 kB / 354.2 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.1422, allocations: 4.375 kB / 354.2 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.496e-05/0.1422, allocations: 12.36 kB / 354.2 MB, free: 1.168 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000463/0.1427, allocations: 178.3 kB / 354.4 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1427, allocations: 8.125 kB / 354.4 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.935e-05/0.1427, allocations: 7.938 kB / 354.4 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.1427, allocations: 0 / 354.4 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001087/0.1429, allocations: 39.98 kB / 354.5 MB, free: 0.918 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004821/0.1434, allocations: 377.8 kB / 354.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/0.1436, allocations: 111.8 kB / 355 MB, free: 364 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001072/0.1437, allocations: 66.61 kB / 355 MB, free: 288 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.811e-05/0.1437, allocations: 3.938 kB / 355 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.1437, allocations: 46.5 kB / 355.1 MB, free: 228 kB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.333e-06/0.1438, allocations: 0 / 355.1 MB, free: 228 kB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.000364/0.1441, allocations: 133.4 kB / 355.2 MB, free: 88 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001844/0.1443, allocations: 106.8 kB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000132/0.1445, allocations: 148.2 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.1445, allocations: 33.7 kB / 355.5 MB, free: 15.77 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.563e-05/0.1445, allocations: 88.41 kB / 355.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.413e-05/0.1446, allocations: 7.906 kB / 355.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-05/0.1446, allocations: 25.7 kB / 355.6 MB, free: 15.63 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.1447, allocations: 314.8 kB / 355.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.618e-05/0.1448, allocations: 19.98 kB / 355.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.581e-05/0.1449, allocations: 89.31 kB / 356 MB, free: 15.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000134/0.145, allocations: 117.2 kB / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.145, allocations: 0 / 356.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001838/0.1452, allocations: 109.4 kB / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.1452, allocations: 8 kB / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.1453, allocations: 352 / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.1453, allocations: 8 kB / 356.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.567e-05/0.1453, allocations: 11.98 kB / 356.3 MB, free: 14.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.1453, allocations: 7.938 kB / 356.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.724e-05/0.1454, allocations: 11.84 kB / 356.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.1454, allocations: 4 kB / 356.3 MB, free: 14.86 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.0002116/0.1456, allocations: 133.8 kB / 356.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.1458, allocations: 85.53 kB / 356.5 MB, free: 14.63 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.584e-05/0.1458, allocations: 13.19 kB / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1458, allocations: 8 kB / 356.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.1458, allocations: 0 / 356.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1458, allocations: 0 / 356.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002368/0.1461, allocations: 193.4 kB / 356.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1461, allocations: 3.938 kB / 356.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.813e-05/0.1461, allocations: 8 kB / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1461, allocations: 3.938 kB / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.1461, allocations: 0 / 356.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1462, allocations: 4 kB / 356.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1462, allocations: 0 / 356.7 MB, free: 14.35 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.0004143/0.1466, allocations: 352.3 kB / 357.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.768e-05/0.1467, allocations: 97 kB / 357.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.1467, allocations: 4 kB / 357.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.395e-05/0.1468, allocations: 4 kB / 357.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.241e-05/0.1468, allocations: 11.92 kB / 357.2 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.1468, allocations: 4 kB / 357.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.551e-05/0.1469, allocations: 105.8 kB / 357.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1469, allocations: 0 / 357.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002914/0.1472, allocations: 8 kB / 357.3 MB, free: 13.74 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.0001171/0.1473, allocations: 111.2 kB / 357.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001893/0.1475, allocations: 67.84 kB / 357.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1475, allocations: 0 / 357.5 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.482e-05/0.1476, allocations: 15.94 kB / 357.5 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004503/0.148, allocations: 59.5 kB / 357.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000435/0.1485, allocations: 238.8 kB / 357.8 MB, free: 13.22 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.1488, allocations: 0.7082 MB / 358.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.824e-05/0.1489, allocations: 8.422 kB / 358.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.231e-05/0.1489, allocations: 11.44 kB / 358.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1489, allocations: 0 / 358.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of Templates: time 0.003314/0.1522, allocations: 0.6997 MB / 359.2 MB, free: 11.77 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 -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","/var/lib/jenkins/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