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.001185/0.001185, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001207/0.001207, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001491/0.001491, allocations: 65.16 kB / 308.4 MB, free: 15.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1209, allocations: 50.52 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003126/0.124, allocations: 1.609 MB / 360.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004263/0.1245, allocations: 167.4 kB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.539e-05/0.1246, allocations: 4 kB / 360.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.946e-05/0.1246, allocations: 11.86 kB / 360.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001189/0.1248, allocations: 7.938 kB / 360.7 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002404/0.125, allocations: 43.88 kB / 360.7 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.1251, allocations: 67.77 kB / 360.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001306/0.1253, allocations: 40.2 kB / 360.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.609e-05/0.1253, allocations: 19.92 kB / 360.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.475e-05/0.1254, allocations: 31.8 kB / 360.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.1254, allocations: 8 kB / 360.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.291e-05/0.1254, allocations: 4 kB / 360.9 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.035e-05/0.1255, allocations: 23.92 kB / 360.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.986e-05/0.1255, allocations: 43.72 kB / 361 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001212/0.1256, allocations: 83.64 kB / 361 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.1256, allocations: 0 / 361 MB, free: 11.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1256, allocations: 0 / 361 MB, free: 11.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.71e-06/0.1257, allocations: 0 / 361 MB, free: 11.16 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.0004469/0.1261, allocations: 383.1 kB / 361.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.1262, allocations: 12.02 kB / 361.4 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.928e-05/0.1262, allocations: 12.84 kB / 361.4 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002315/0.1264, allocations: 208 kB / 361.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.154e-05/0.1265, allocations: 4.375 kB / 361.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.69e-05/0.1265, allocations: 4.375 kB / 361.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003382/0.1268, allocations: 188.5 kB / 361.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.315e-06/0.1269, allocations: 192 / 361.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.391e-05/0.1269, allocations: 7.938 kB / 361.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.1269, allocations: 7.984 kB / 361.9 MB, free: 10.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.623e-05/0.127, allocations: 39.86 kB / 361.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003682/0.1274, allocations: 377.8 kB / 362.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.1275, allocations: 111.8 kB / 362.4 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.056e-05/0.1276, allocations: 58.61 kB / 362.4 MB, free: 9.578 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.1277, allocations: 8 kB / 362.4 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.1277, allocations: 38.5 kB / 362.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.1277, allocations: 0 / 362.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003141/0.128, allocations: 125.5 kB / 362.6 MB, free: 9.395 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.4e-05/0.1281, allocations: 115.1 kB / 362.7 MB, free: 9.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.1282, allocations: 141.7 kB / 362.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.1282, allocations: 25.7 kB / 362.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.948e-05/0.1283, allocations: 104.6 kB / 363 MB, free: 8.969 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.976e-06/0.1283, allocations: 0 / 363 MB, free: 8.969 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.327e-05/0.1284, allocations: 41.61 kB / 363 MB, free: 8.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.071e-05/0.1285, allocations: 314.8 kB / 363.3 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.171e-05/0.1285, allocations: 15.98 kB / 363.3 MB, free: 8.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.083e-05/0.1286, allocations: 85.38 kB / 363.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.1287, allocations: 113.2 kB / 363.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1287, allocations: 0 / 363.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001712/0.1289, allocations: 117.4 kB / 363.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.1289, allocations: 6.656 kB / 363.7 MB, free: 8.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.1289, allocations: 7.984 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.129, allocations: 4 kB / 363.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.919e-05/0.129, allocations: 7.938 kB / 363.7 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.129, allocations: 4 kB / 363.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.331e-05/0.129, allocations: 8.281 kB / 363.7 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.1291, allocations: 11.94 kB / 363.7 MB, free: 8.16 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 9.637e-05/0.1292, allocations: 137.6 kB / 363.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.1293, allocations: 85.53 kB / 363.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.048e-05/0.1293, allocations: 16.72 kB / 363.9 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.1294, allocations: 4 kB / 363.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.1294, allocations: 0 / 363.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.1294, allocations: 0 / 363.9 MB, free: 7.906 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002268/0.1296, allocations: 197.4 kB / 364.1 MB, free: 7.664 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.1296, allocations: 4 kB / 364.1 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.227e-05/0.1296, allocations: 0 / 364.1 MB, free: 7.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.1296, allocations: 4 kB / 364.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.205e-06/0.1297, allocations: 0 / 364.1 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.428e-06/0.1297, allocations: 7.984 kB / 364.1 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1297, allocations: 7.938 kB / 364.2 MB, free: 7.641 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.0003434/0.13, allocations: 332.4 kB / 364.5 MB, free: 7.293 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.328e-05/0.1301, allocations: 97 kB / 364.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.664e-05/0.1301, allocations: 96 / 364.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.1302, allocations: 11.92 kB / 364.6 MB, free: 7.168 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.188e-05/0.1303, allocations: 7.938 kB / 364.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.023e-06/0.1303, allocations: 4 kB / 364.6 MB, free: 7.156 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.587e-05/0.1304, allocations: 107.3 kB / 364.7 MB, free: 7.051 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1304, allocations: 0 / 364.7 MB, free: 7.051 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002803/0.1307, allocations: 8 kB / 364.7 MB, free: 7.043 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.0001063/0.1308, allocations: 111.2 kB / 364.8 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000165/0.1309, allocations: 64.48 kB / 364.9 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.131, allocations: 4.062 kB / 364.9 MB, free: 6.855 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.219e-05/0.131, allocations: 11.98 kB / 364.9 MB, free: 6.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004116/0.1314, allocations: 51.89 kB / 364.9 MB, free: 6.793 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000365/0.1318, allocations: 215.6 kB / 365.2 MB, free: 6.547 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000261/0.1321, allocations: 0.7042 MB / 365.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.311e-05/0.1321, allocations: 8.438 kB / 365.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.603e-05/0.1321, allocations: 11.44 kB / 365.9 MB, free: 5.797 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1321, allocations: 0 / 365.9 MB, free: 5.797 MB / 302.1 MB Notification: Performance of Templates: time 0.003319/0.1354, allocations: 0.7876 MB / 366.7 MB, free: 5.016 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 -s cvode -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/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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches