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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002156/0.002156, allocations: 118.6 kB / 18.5 MB, free: 4.543 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002179/0.002179, allocations: 202.6 kB / 21.45 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.67/1.67, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.1 MB " [Timeout remaining time 178] 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=5011,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=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 63.91 kB / 373.8 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1495, allocations: 53.32 MB / 427.1 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.004086/0.1536, allocations: 1.617 MB / 428.8 MB, free: 2.867 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005668/0.1542, allocations: 167.4 kB / 428.9 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.1543, allocations: 7.938 kB / 428.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 6.425e-05/0.1544, allocations: 11.86 kB / 428.9 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001574/0.1545, allocations: 7.938 kB / 429 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003303/0.1548, allocations: 55.81 kB / 429 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.155, allocations: 55.91 kB / 429.1 MB, free: 2.566 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001609/0.1552, allocations: 28.22 kB / 429.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.301e-05/0.1552, allocations: 23.86 kB / 429.1 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.042e-05/0.1553, allocations: 35.83 kB / 429.1 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.605e-05/0.1553, allocations: 8 kB / 429.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.451e-05/0.1553, allocations: 4 kB / 429.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.613e-05/0.1554, allocations: 15.92 kB / 429.2 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.833e-05/0.1554, allocations: 39.69 kB / 429.2 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001833/0.1556, allocations: 79.58 kB / 429.3 MB, free: 2.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.1556, allocations: 3.938 kB / 429.3 MB, free: 2.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1556, allocations: 4 kB / 429.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.725e-06/0.1556, allocations: 4 kB / 429.3 MB, free: 2.32 MB / 350.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.0006489/0.1563, allocations: 387 kB / 429.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.1563, allocations: 8.031 kB / 429.7 MB, free: 1.883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.661e-05/0.1564, allocations: 12.84 kB / 429.7 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003713/0.1568, allocations: 196.2 kB / 429.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.1568, allocations: 8.375 kB / 429.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.77e-05/0.1568, allocations: 4.375 kB / 429.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004698/0.1573, allocations: 192.4 kB / 430.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.433e-05/0.1573, allocations: 4.172 kB / 430.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.1573, allocations: 7.938 kB / 430.1 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.1573, allocations: 3.938 kB / 430.1 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001186/0.1574, allocations: 43.97 kB / 430.2 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005564/0.158, allocations: 369.8 kB / 430.5 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002216/0.1582, allocations: 115.8 kB / 430.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001064/0.1583, allocations: 54.62 kB / 430.7 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.706e-05/0.1583, allocations: 4 kB / 430.7 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.1584, allocations: 34.5 kB / 430.7 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.502e-06/0.1584, allocations: 0 / 430.7 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003693/0.1587, allocations: 133.5 kB / 430.8 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.563e-05/0.1588, allocations: 111.1 kB / 431 MB, free: 436 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.159, allocations: 145.7 kB / 431.1 MB, free: 280 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.159, allocations: 25.7 kB / 431.1 MB, free: 248 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.006e-05/0.1591, allocations: 100.2 kB / 431.2 MB, free: 140 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.343e-05/0.1591, allocations: 4 kB / 431.2 MB, free: 136 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.654e-05/0.1591, allocations: 37.66 kB / 431.3 MB, free: 92 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1593, allocations: 327.1 kB / 431.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.212e-05/0.1593, allocations: 8 kB / 431.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.524e-05/0.1594, allocations: 81.38 kB / 431.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001655/0.1596, allocations: 117.2 kB / 431.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1596, allocations: 0 / 431.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002047/0.1598, allocations: 121.7 kB / 431.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.1598, allocations: 8.031 kB / 431.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.1598, allocations: 4 kB / 431.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.29e-05/0.1599, allocations: 4 kB / 431.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.419e-05/0.1599, allocations: 4 kB / 431.9 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.1599, allocations: 7.984 kB / 431.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.757e-05/0.16, allocations: 11.94 kB / 431.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.919e-05/0.16, allocations: 8 kB / 431.9 MB, free: 15.32 MB / 366.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.0001309/0.1601, allocations: 137.7 kB / 432.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000151/0.1603, allocations: 81.58 kB / 432.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.356e-05/0.1603, allocations: 16.72 kB / 432.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.1603, allocations: 4 kB / 432.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.1603, allocations: 0 / 432.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.1603, allocations: 3.984 kB / 432.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002979/0.1606, allocations: 193.5 kB / 432.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1606, allocations: 0 / 432.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.654e-05/0.1606, allocations: 3.984 kB / 432.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.1606, allocations: 4 kB / 432.4 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.1607, allocations: 3.938 kB / 432.4 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.1607, allocations: 11.94 kB / 432.4 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1607, allocations: 0 / 432.4 MB, free: 14.8 MB / 366.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:8012:5-8012: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.00045/0.1611, allocations: 339 kB / 432.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.512e-05/0.1612, allocations: 93.05 kB / 432.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.614e-05/0.1612, allocations: 8.078 kB / 432.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.365e-05/0.1613, allocations: 7.938 kB / 432.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.766e-05/0.1614, allocations: 0 / 432.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.861e-06/0.1614, allocations: 4 kB / 432.8 MB, free: 14.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001001/0.1615, allocations: 111.2 kB / 432.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1615, allocations: 0 / 432.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003126/0.1618, allocations: 16 kB / 433 MB, free: 14.2 MB / 366.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.0001428/0.1619, allocations: 101.2 kB / 433.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002149/0.1621, allocations: 75.78 kB / 433.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1621, allocations: 0 / 433.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.152e-05/0.1622, allocations: 4.688 kB / 433.1 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004935/0.1627, allocations: 62.73 kB / 433.2 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004929/0.1631, allocations: 207.6 kB / 433.4 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004003/0.1635, allocations: 0.708 MB / 434.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.669e-05/0.1636, allocations: 448 / 434.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.218e-05/0.1636, allocations: 15.44 kB / 434.1 MB, free: 12.97 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1636, allocations: 0 / 434.1 MB, free: 12.97 MB / 366.1 MB Notification: Performance of Templates: time 0.004314/0.1679, allocations: 0.7915 MB / 434.9 MB, free: 12.18 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.394346972927451]