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.001084/0.001084, allocations: 96.44 kB / 17 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 202.5 kB / 17.91 MB, free: 5.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.7 MB / 246.4 MB, free: 9.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002238/0.0002239, allocations: 4 kB / 307.1 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1325, allocations: 51.52 MB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.001601/0.1341, allocations: 1.309 MB / 359.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003327/0.1344, allocations: 179.5 kB / 360.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.509e-05/0.1345, allocations: 0 / 360.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.487e-05/0.1346, allocations: 3.938 kB / 360.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.775e-05/0.1346, allocations: 4 kB / 360.1 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002379/0.1349, allocations: 43.89 kB / 360.2 MB, free: 11.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 8.166e-05/0.135, allocations: 55.78 kB / 360.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.39e-05/0.1351, allocations: 40.36 kB / 360.3 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.092e-05/0.1351, allocations: 15.92 kB / 360.3 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.252e-05/0.1352, allocations: 23.86 kB / 360.3 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.405e-05/0.1352, allocations: 3.938 kB / 360.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.036e-05/0.1352, allocations: 4 kB / 360.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.988e-05/0.1352, allocations: 11.98 kB / 360.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.436e-05/0.1353, allocations: 37.64 kB / 360.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 8.081e-05/0.1354, allocations: 47.89 kB / 360.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1354, allocations: 0 / 360.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1354, allocations: 0 / 360.4 MB, free: 11.65 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.1354, allocations: 4 kB / 360.4 MB, free: 11.64 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.0003718/0.1358, allocations: 375.3 kB / 360.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.1358, allocations: 12.03 kB / 360.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.828e-05/0.1358, allocations: 11.84 kB / 360.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001623/0.136, allocations: 190.9 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.62e-05/0.136, allocations: 4 kB / 361 MB, free: 10.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.501e-05/0.1361, allocations: 8 kB / 361 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003306/0.1364, allocations: 189.7 kB / 361.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.1364, allocations: 0 / 361.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.337e-06/0.1364, allocations: 3.938 kB / 361.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.1365, allocations: 7.938 kB / 361.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.574e-05/0.1366, allocations: 43.92 kB / 361.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003564/0.1369, allocations: 377.8 kB / 361.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001507/0.1371, allocations: 115.8 kB / 361.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.066e-05/0.1372, allocations: 62.67 kB / 361.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.087e-05/0.1372, allocations: 0 / 361.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.1373, allocations: 42.5 kB / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.1373, allocations: 0 / 361.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003064/0.1376, allocations: 133.4 kB / 361.9 MB, free: 9.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.1376, allocations: 114.8 kB / 362.1 MB, free: 9.746 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.1378, allocations: 136.5 kB / 362.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.682e-05/0.1378, allocations: 29.7 kB / 362.2 MB, free: 9.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.182e-05/0.1379, allocations: 96.31 kB / 362.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.008e-05/0.1379, allocations: 0 / 362.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.901e-06/0.1379, allocations: 4.25 kB / 362.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.138, allocations: 322.8 kB / 362.6 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.796e-05/0.138, allocations: 12 kB / 362.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.55e-05/0.1381, allocations: 85.38 kB / 362.7 MB, free: 9.012 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.631e-05/0.1382, allocations: 35.88 kB / 362.8 MB, free: 8.977 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1382, allocations: 4 kB / 362.8 MB, free: 8.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001813/0.1384, allocations: 113.3 kB / 362.9 MB, free: 8.855 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.1384, allocations: 8 kB / 362.9 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1384, allocations: 4.375 kB / 362.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.1385, allocations: 4 kB / 362.9 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.014e-05/0.1385, allocations: 8.328 kB / 362.9 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.1385, allocations: 7.938 kB / 362.9 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.571e-05/0.1386, allocations: 23.81 kB / 362.9 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.1386, allocations: 4 kB / 362.9 MB, free: 8.797 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.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 9.173e-05/0.1387, allocations: 129.8 kB / 363.1 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.1388, allocations: 85.53 kB / 363.1 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.398e-05/0.1389, allocations: 12.72 kB / 363.2 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.1389, allocations: 0 / 363.2 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.1389, allocations: 8 kB / 363.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.1389, allocations: 0 / 363.2 MB, free: 8.551 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000226/0.1391, allocations: 189.5 kB / 363.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1391, allocations: 7.953 kB / 363.4 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.38e-05/0.1392, allocations: 0 / 363.4 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.1392, allocations: 0 / 363.4 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.1392, allocations: 11.94 kB / 363.4 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.492e-06/0.1392, allocations: 0 / 363.4 MB, free: 8.297 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1392, allocations: 0 / 363.4 MB, free: 8.297 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:7863:5-7863: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.0003548/0.1395, allocations: 344.5 kB / 363.7 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.236e-05/0.1396, allocations: 93 kB / 363.8 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.06e-05/0.1397, allocations: 11.95 kB / 363.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.164e-05/0.1398, allocations: 7.938 kB / 363.8 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.775e-05/0.1398, allocations: 11.92 kB / 363.8 MB, free: 7.797 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.1398, allocations: 4 kB / 363.8 MB, free: 7.793 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.86e-05/0.1399, allocations: 99.27 kB / 363.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1399, allocations: 0 / 363.9 MB, free: 7.695 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002699/0.1402, allocations: 12 kB / 363.9 MB, free: 7.684 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 (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 9.513e-05/0.1403, allocations: 106.5 kB / 364 MB, free: 7.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001636/0.1404, allocations: 71.84 kB / 364.1 MB, free: 7.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.1404, allocations: 0 / 364.1 MB, free: 7.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.238e-05/0.1405, allocations: 11.98 kB / 364.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000396/0.1409, allocations: 64.73 kB / 364.2 MB, free: 7.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003488/0.1412, allocations: 231.5 kB / 364.4 MB, free: 7.172 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.1415, allocations: 0.7043 MB / 365.1 MB, free: 6.441 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.22e-05/0.1416, allocations: 12.42 kB / 365.1 MB, free: 6.426 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.518e-05/0.1416, allocations: 11.44 kB / 365.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1416, allocations: 0 / 365.1 MB, free: 6.418 MB / 302.1 MB Notification: Performance of Templates: time 0.002582/0.1442, allocations: 0.665 MB / 365.8 MB, free: 5.754 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