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.001064/0.001064, 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.001122/0.001122, 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.397/1.397, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 57.31 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1148, allocations: 50.52 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002932/0.1178, allocations: 1.614 MB / 360.5 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003992/0.1182, allocations: 167.5 kB / 360.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.116e-05/0.1183, allocations: 4 kB / 360.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.76e-05/0.1184, allocations: 11.86 kB / 360.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001228/0.1185, allocations: 11.88 kB / 360.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002486/0.1188, allocations: 43.88 kB / 360.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001174/0.1189, allocations: 59.84 kB / 360.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001398/0.119, allocations: 40.2 kB / 360.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.491e-05/0.1191, allocations: 19.92 kB / 360.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.804e-05/0.1191, allocations: 39.77 kB / 360.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.1192, allocations: 8 kB / 360.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.362e-05/0.1192, allocations: 4 kB / 360.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.81e-05/0.1192, allocations: 19.92 kB / 360.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.534e-05/0.1193, allocations: 35.81 kB / 361 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001127/0.1194, allocations: 83.58 kB / 361 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.1194, allocations: 4 kB / 361 MB, free: 11.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1194, allocations: 0 / 361 MB, free: 11.18 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1194, allocations: 3.938 kB / 361 MB, free: 11.18 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.0004719/0.1199, allocations: 387 kB / 361.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.1199, allocations: 8.031 kB / 361.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.072e-05/0.12, allocations: 12.84 kB / 361.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000223/0.1202, allocations: 204 kB / 361.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.1202, allocations: 4.375 kB / 361.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.384e-05/0.1203, allocations: 4.375 kB / 361.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003323/0.1206, allocations: 185 kB / 361.8 MB, free: 10.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.1206, allocations: 8.172 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.1206, allocations: 7.938 kB / 361.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.1206, allocations: 7.938 kB / 361.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.885e-05/0.1207, allocations: 35.92 kB / 361.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003871/0.1211, allocations: 369.8 kB / 362.3 MB, free: 9.805 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.1213, allocations: 115.7 kB / 362.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.966e-05/0.1214, allocations: 66.73 kB / 362.4 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.481e-05/0.1214, allocations: 4 kB / 362.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.1215, allocations: 34.56 kB / 362.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.352e-06/0.1215, allocations: 0 / 362.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003316/0.1218, allocations: 129.4 kB / 362.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.287e-05/0.1219, allocations: 110.8 kB / 362.7 MB, free: 9.277 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001112/0.122, allocations: 141.7 kB / 362.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.122, allocations: 25.7 kB / 362.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.264e-05/0.1221, allocations: 93.03 kB / 363 MB, free: 9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.091e-05/0.1221, allocations: 4 kB / 363 MB, free: 8.996 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.626e-05/0.1222, allocations: 41.61 kB / 363 MB, free: 8.949 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.1223, allocations: 318.8 kB / 363.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.24e-05/0.1223, allocations: 19.88 kB / 363.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.391e-05/0.1224, allocations: 85.38 kB / 363.4 MB, free: 8.492 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001271/0.1225, allocations: 109.2 kB / 363.5 MB, free: 8.352 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.1225, allocations: 4 kB / 363.5 MB, free: 8.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001719/0.1227, allocations: 121.3 kB / 363.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.1227, allocations: 7.984 kB / 363.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1228, allocations: 4 kB / 363.7 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.1228, allocations: 4 kB / 363.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.019e-05/0.1228, allocations: 7.938 kB / 363.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.1228, allocations: 4 kB / 363.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.218e-05/0.1229, allocations: 11.88 kB / 363.7 MB, free: 8.184 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.002e-05/0.1229, allocations: 4.344 kB / 363.7 MB, free: 8.18 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.545e-05/0.123, allocations: 145 kB / 363.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.1231, allocations: 81.59 kB / 363.9 MB, free: 7.945 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.189e-05/0.1232, allocations: 16.72 kB / 363.9 MB, free: 7.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1232, allocations: 4 kB / 363.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1232, allocations: 0 / 363.9 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.742e-06/0.1232, allocations: 3.984 kB / 363.9 MB, free: 7.922 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002311/0.1234, allocations: 193.4 kB / 364.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1234, allocations: 0 / 364.1 MB, free: 7.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.436e-05/0.1235, allocations: 7.938 kB / 364.1 MB, free: 7.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.1235, allocations: 4 kB / 364.1 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.1235, allocations: 3.984 kB / 364.1 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1235, allocations: 0 / 364.1 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1235, allocations: 4 kB / 364.1 MB, free: 7.664 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.0003407/0.1238, allocations: 336.4 kB / 364.5 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.114e-05/0.1239, allocations: 97 kB / 364.6 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.1239, allocations: 0 / 364.6 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.543e-05/0.124, allocations: 15.92 kB / 364.6 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.667e-05/0.1241, allocations: 0 / 364.6 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.1241, allocations: 4 kB / 364.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.454e-05/0.1242, allocations: 110 kB / 364.7 MB, free: 7.074 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1242, allocations: 3.938 kB / 364.7 MB, free: 7.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002819/0.1245, allocations: 12 kB / 364.7 MB, free: 7.059 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 9.827e-05/0.1246, allocations: 107.2 kB / 364.8 MB, free: 6.941 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001681/0.1247, allocations: 68.3 kB / 364.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1247, allocations: 4.188 kB / 364.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.055e-05/0.1248, allocations: 11.98 kB / 364.9 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004055/0.1252, allocations: 54.3 kB / 364.9 MB, free: 6.809 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000363/0.1256, allocations: 211.6 kB / 365.2 MB, free: 6.566 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002601/0.1258, allocations: 0.7041 MB / 365.9 MB, free: 5.836 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.169e-05/0.1259, allocations: 8.562 kB / 365.9 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.573e-05/0.1259, allocations: 11.44 kB / 365.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1259, allocations: 0 / 365.9 MB, free: 5.816 MB / 302.1 MB Notification: Performance of Templates: time 0.002972/0.1289, allocations: 0.7865 MB / 366.7 MB, free: 5.031 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 gbode -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