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.001392/0.001393, allocations: 112.5 kB / 17.68 MB, free: 5.496 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.001118/0.001118, allocations: 190.9 kB / 18.62 MB, free: 4.562 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.418/1.418, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 59.23 kB / 302.1 MB, free: 5.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1389, allocations: 49.43 MB / 351.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.005221/0.1442, allocations: 1.594 MB / 353.1 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006905/0.145, allocations: 175.3 kB / 353.3 MB, free: 1.895 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001007/0.1451, allocations: 4 kB / 353.3 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.183e-05/0.1452, allocations: 7.875 kB / 353.3 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001388/0.1453, allocations: 11.86 kB / 353.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002836/0.1456, allocations: 51.83 kB / 353.3 MB, free: 1.82 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001282/0.1458, allocations: 59.84 kB / 353.4 MB, free: 1.762 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.1459, allocations: 28.22 kB / 353.4 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.868e-05/0.146, allocations: 27.91 kB / 353.4 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.335e-05/0.146, allocations: 35.78 kB / 353.5 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.477e-05/0.1461, allocations: 4 kB / 353.5 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.528e-05/0.1461, allocations: 8 kB / 353.5 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.915e-05/0.1462, allocations: 23.92 kB / 353.5 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.793e-05/0.1462, allocations: 35.8 kB / 353.6 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.1464, allocations: 75.66 kB / 353.6 MB, free: 1.527 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1464, allocations: 0 / 353.6 MB, free: 1.527 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.1464, allocations: 0 / 353.6 MB, free: 1.527 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.1464, allocations: 0 / 353.6 MB, free: 1.527 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.0005548/0.1469, allocations: 391.1 kB / 354 MB, free: 1.094 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.147, allocations: 11.89 kB / 354 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.78e-05/0.147, allocations: 16.75 kB / 354 MB, free: 1.066 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.1474, allocations: 204.1 kB / 354.2 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.1474, allocations: 384 / 354.2 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.1474, allocations: 12.38 kB / 354.2 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004197/0.1478, allocations: 187 kB / 354.4 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.1479, allocations: 192 / 354.4 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.1479, allocations: 3.938 kB / 354.4 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.1479, allocations: 7.938 kB / 354.4 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.148, allocations: 35.98 kB / 354.5 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004662/0.1485, allocations: 373.8 kB / 354.8 MB, free: 148 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001821/0.1487, allocations: 119.8 kB / 355 MB, free: 0 / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.1488, allocations: 54.62 kB / 355 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.806e-05/0.1488, allocations: 4 kB / 355 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.449e-05/0.1489, allocations: 46.48 kB / 355.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.282e-06/0.1489, allocations: 0 / 355.1 MB, free: 15.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003843/0.1493, allocations: 125.5 kB / 355.2 MB, free: 15.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.143e-05/0.1494, allocations: 114.8 kB / 355.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.1496, allocations: 148.2 kB / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.1496, allocations: 29.95 kB / 355.5 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.1497, allocations: 88.42 kB / 355.6 MB, free: 15.33 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.821e-05/0.1498, allocations: 11.98 kB / 355.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.648e-05/0.1498, allocations: 29.62 kB / 355.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.15, allocations: 322.8 kB / 355.9 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.65e-05/0.15, allocations: 15.98 kB / 355.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.1502, allocations: 81.44 kB / 356 MB, free: 14.83 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000294/0.1505, allocations: 113.2 kB / 356.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1505, allocations: 0 / 356.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001981/0.1507, allocations: 113.4 kB / 356.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.1508, allocations: 4 kB / 356.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.1508, allocations: 8 kB / 356.2 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.1508, allocations: 4 kB / 356.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.415e-05/0.1508, allocations: 4 kB / 356.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.177e-05/0.1508, allocations: 7.984 kB / 356.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.386e-05/0.1509, allocations: 16.19 kB / 356.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.1509, allocations: 8 kB / 356.3 MB, free: 14.52 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.0001575/0.1511, allocations: 131.6 kB / 356.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001612/0.1513, allocations: 93.45 kB / 356.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.318e-05/0.1514, allocations: 16.7 kB / 356.5 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.1514, allocations: 4 kB / 356.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.1514, allocations: 0 / 356.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.1514, allocations: 0 / 356.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003453/0.1517, allocations: 197.4 kB / 356.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1517, allocations: 4.469 kB / 356.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.35e-05/0.1518, allocations: 0 / 356.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1518, allocations: 4 kB / 356.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.1518, allocations: 4 kB / 356.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.1518, allocations: 7.938 kB / 356.7 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1518, allocations: 3.938 kB / 356.7 MB, free: 14 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.0004627/0.1523, allocations: 340.9 kB / 357.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.398e-05/0.1524, allocations: 92.98 kB / 357.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.587e-05/0.1524, allocations: 8 kB / 357.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.857e-05/0.1525, allocations: 0 / 357.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.754e-05/0.1525, allocations: 0 / 357.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.668e-05/0.1526, allocations: 8 kB / 357.2 MB, free: 13.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.964e-05/0.1527, allocations: 115.1 kB / 357.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1527, allocations: 0 / 357.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.153, allocations: 16 kB / 357.3 MB, free: 13.39 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.0001648/0.1531, allocations: 103.7 kB / 357.4 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002158/0.1534, allocations: 68.47 kB / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.1534, allocations: 4.062 kB / 357.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.352e-05/0.1534, allocations: 8 kB / 357.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004811/0.1539, allocations: 66.69 kB / 357.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004722/0.1544, allocations: 211.7 kB / 357.8 MB, free: 12.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005007/0.1549, allocations: 0.7042 MB / 358.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.659e-05/0.1549, allocations: 8.422 kB / 358.5 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.323e-05/0.155, allocations: 11.44 kB / 358.5 MB, free: 12.15 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.155, allocations: 0 / 358.5 MB, free: 12.15 MB / 302.1 MB Notification: Performance of Templates: time 0.003589/0.1586, allocations: 0.7777 MB / 359.3 MB, free: 11.37 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 gbode -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