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: 92.25 kB / 16.31 MB, free: 6.461 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.001237/0.001237, allocations: 174.4 kB / 17.19 MB, free: 6.348 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.484/1.484, allocations: 223.2 MB / 241.1 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000271/0.0002711, allocations: 5.531 kB / 300.7 MB, free: 5.961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1342, allocations: 50.42 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002599/0.1369, allocations: 1.299 MB / 352.4 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005574/0.1375, allocations: 175.4 kB / 352.6 MB, free: 10.24 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.1377, allocations: 4 kB / 352.6 MB, free: 10.24 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.208e-05/0.1378, allocations: 7.922 kB / 352.6 MB, free: 10.23 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001744/0.1379, allocations: 8 kB / 352.6 MB, free: 10.22 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000363/0.1383, allocations: 47.81 kB / 352.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.1385, allocations: 27.98 kB / 352.7 MB, free: 10.15 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001797/0.1386, allocations: 28.38 kB / 352.7 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.07e-05/0.1387, allocations: 23.88 kB / 352.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.113e-05/0.1388, allocations: 23.84 kB / 352.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.133e-05/0.1388, allocations: 4 kB / 352.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.519e-05/0.1388, allocations: 0 / 352.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.034e-05/0.1389, allocations: 11.94 kB / 352.8 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.942e-05/0.139, allocations: 33.7 kB / 352.8 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.1391, allocations: 51.83 kB / 352.9 MB, free: 9.965 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1391, allocations: 4 kB / 352.9 MB, free: 9.961 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.886e-06/0.1391, allocations: 0 / 352.9 MB, free: 9.961 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.218e-06/0.1391, allocations: 0 / 352.9 MB, free: 9.961 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.0006588/0.1398, allocations: 375 kB / 353.2 MB, free: 9.547 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.1398, allocations: 8.031 kB / 353.3 MB, free: 9.539 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.087e-05/0.1399, allocations: 11.86 kB / 353.3 MB, free: 9.527 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002685/0.1402, allocations: 202.8 kB / 353.5 MB, free: 9.289 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.013e-05/0.1402, allocations: 8 kB / 353.5 MB, free: 9.281 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.425e-05/0.1402, allocations: 8 kB / 353.5 MB, free: 9.273 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004443/0.1407, allocations: 190 kB / 353.7 MB, free: 9.07 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1407, allocations: 0 / 353.7 MB, free: 9.07 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.1407, allocations: 3.953 kB / 353.7 MB, free: 9.066 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.109e-05/0.1408, allocations: 4 kB / 353.7 MB, free: 9.062 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001067/0.1409, allocations: 39.97 kB / 353.7 MB, free: 9.023 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004897/0.1414, allocations: 369.8 kB / 354.1 MB, free: 8.605 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.1416, allocations: 115.8 kB / 354.2 MB, free: 8.465 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.1416, allocations: 8.125 kB / 354.2 MB, free: 8.457 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.935e-05/0.1417, allocations: 42.45 kB / 354.2 MB, free: 8.406 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.413e-06/0.1417, allocations: 0 / 354.2 MB, free: 8.406 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003546/0.142, allocations: 125.5 kB / 354.4 MB, free: 8.277 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.219e-05/0.1421, allocations: 119 kB / 354.5 MB, free: 8.137 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.1423, allocations: 144.3 kB / 354.6 MB, free: 7.988 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.139e-05/0.1423, allocations: 33.7 kB / 354.6 MB, free: 7.949 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.379e-05/0.1424, allocations: 88.41 kB / 354.7 MB, free: 7.855 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.336e-05/0.1424, allocations: 7.906 kB / 354.7 MB, free: 7.848 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.1424, allocations: 4 kB / 354.7 MB, free: 7.844 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.1426, allocations: 314.8 kB / 355.1 MB, free: 7.527 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.335e-05/0.1426, allocations: 16 kB / 355.1 MB, free: 7.512 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.774e-05/0.1427, allocations: 81.44 kB / 355.1 MB, free: 7.398 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.235e-05/0.1428, allocations: 31.92 kB / 355.2 MB, free: 7.367 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1428, allocations: 3.938 kB / 355.2 MB, free: 7.363 MB / 286.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002049/0.143, allocations: 121.4 kB / 355.3 MB, free: 7.238 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.143, allocations: 7.953 kB / 355.3 MB, free: 7.23 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.143, allocations: 4 kB / 355.3 MB, free: 7.227 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.143, allocations: 4 kB / 355.3 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.313e-05/0.1431, allocations: 4 kB / 355.3 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.604e-05/0.1431, allocations: 11.92 kB / 355.3 MB, free: 7.207 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.798e-05/0.1432, allocations: 8 kB / 355.3 MB, free: 7.199 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.245e-05/0.1432, allocations: 4 kB / 355.3 MB, free: 7.195 MB / 286.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.u,hold1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000224/0.1434, allocations: 134 kB / 355.5 MB, free: 7.055 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001324/0.1435, allocations: 77.91 kB / 355.5 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.077e-05/0.1436, allocations: 24.66 kB / 355.6 MB, free: 6.945 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.1436, allocations: 4.094 kB / 355.6 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1436, allocations: 3.938 kB / 355.6 MB, free: 6.938 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.1436, allocations: 0 / 355.6 MB, free: 6.938 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003624/0.144, allocations: 189.5 kB / 355.8 MB, free: 6.703 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.144, allocations: 0 / 355.8 MB, free: 6.703 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.185e-05/0.144, allocations: 0 / 355.8 MB, free: 6.703 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.144, allocations: 8 kB / 355.8 MB, free: 6.695 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.126e-05/0.1441, allocations: 11.94 kB / 355.8 MB, free: 6.684 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.1441, allocations: 7.953 kB / 355.8 MB, free: 6.676 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1441, allocations: 0 / 355.8 MB, free: 6.676 MB / 286.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:7903:5-7903: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.0004676/0.1445, allocations: 364 kB / 356.1 MB, free: 6.289 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.93e-05/0.1446, allocations: 100.9 kB / 356.2 MB, free: 6.172 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.1447, allocations: 4 kB / 356.3 MB, free: 6.168 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.569e-05/0.1448, allocations: 8 kB / 356.3 MB, free: 6.16 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.711e-05/0.1448, allocations: 3.938 kB / 356.3 MB, free: 6.156 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.437e-06/0.1448, allocations: 11.98 kB / 356.3 MB, free: 6.145 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.712e-05/0.1449, allocations: 99.27 kB / 356.4 MB, free: 6.047 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1449, allocations: 4 kB / 356.4 MB, free: 6.043 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002826/0.1452, allocations: 8 kB / 356.4 MB, free: 6.035 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001418/0.1454, allocations: 103.2 kB / 356.5 MB, free: 5.926 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001888/0.1456, allocations: 76.09 kB / 356.6 MB, free: 5.852 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.1456, allocations: 0 / 356.6 MB, free: 5.852 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.595e-05/0.1456, allocations: 8 kB / 356.6 MB, free: 5.844 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003303/0.146, allocations: 55.94 kB / 356.6 MB, free: 5.789 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004113/0.1464, allocations: 219.5 kB / 356.8 MB, free: 5.543 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003223/0.1467, allocations: 0.7121 MB / 357.5 MB, free: 4.805 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.948e-05/0.1467, allocations: 448 / 357.5 MB, free: 4.805 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.265e-05/0.1468, allocations: 23.38 kB / 357.6 MB, free: 4.781 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1468, allocations: 0 / 357.6 MB, free: 4.781 MB / 286.1 MB Notification: Performance of Templates: time 0.00369/0.1505, allocations: 0.668 MB / 358.2 MB, free: 4.117 MB / 286.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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches