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.001332/0.001332, allocations: 109.2 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001571/0.001571, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.9 MB, free: 10.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 63.17 kB / 306.9 MB, free: 1.039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1058, allocations: 50.53 MB / 357.4 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003748/0.1096, allocations: 1.671 MB / 359.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005191/0.1102, allocations: 167.5 kB / 359.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001201/0.1103, allocations: 4 kB / 359.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.686e-05/0.1105, allocations: 7.922 kB / 359.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001419/0.1106, allocations: 3.938 kB / 359.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003122/0.1109, allocations: 51.89 kB / 359.3 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.111, allocations: 51.86 kB / 359.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000132/0.1112, allocations: 40.19 kB / 359.4 MB, free: 12.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.077e-05/0.1112, allocations: 19.88 kB / 359.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.638e-05/0.1113, allocations: 35.83 kB / 359.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.433e-05/0.1113, allocations: 4 kB / 359.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.545e-05/0.1113, allocations: 4 kB / 359.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.768e-05/0.1114, allocations: 15.92 kB / 359.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.677e-05/0.1115, allocations: 35.73 kB / 359.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001062/0.1116, allocations: 51.91 kB / 359.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1116, allocations: 0 / 359.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1116, allocations: 4 kB / 359.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1116, allocations: 0 / 359.6 MB, free: 12.33 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.0005765/0.1122, allocations: 387.4 kB / 360 MB, free: 11.9 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.1122, allocations: 8.031 kB / 360 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.974e-05/0.1123, allocations: 12.84 kB / 360 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002363/0.1125, allocations: 192.1 kB / 360.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.876e-05/0.1126, allocations: 8.375 kB / 360.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.701e-05/0.1126, allocations: 4.375 kB / 360.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004289/0.113, allocations: 192.3 kB / 360.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.113, allocations: 192 / 360.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.1131, allocations: 7.938 kB / 360.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.1131, allocations: 0 / 360.4 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001154/0.1132, allocations: 39.92 kB / 360.4 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004439/0.1137, allocations: 381.7 kB / 360.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.1139, allocations: 119.8 kB / 360.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.114, allocations: 62.61 kB / 361 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.114, allocations: 4 kB / 361 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.114, allocations: 34.5 kB / 361 MB, free: 10.7 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.262e-06/0.1141, allocations: 0 / 361 MB, free: 10.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003472/0.1144, allocations: 129.5 kB / 361.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.366e-05/0.1145, allocations: 118.7 kB / 361.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.1146, allocations: 141.7 kB / 361.4 MB, free: 10.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.1147, allocations: 25.7 kB / 361.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.867e-05/0.1147, allocations: 92.41 kB / 361.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.311e-05/0.1147, allocations: 4 kB / 361.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.095e-05/0.1148, allocations: 37.61 kB / 361.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001097/0.1149, allocations: 315.1 kB / 361.9 MB, free: 9.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.006e-05/0.115, allocations: 19.98 kB / 361.9 MB, free: 9.766 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.755e-05/0.1151, allocations: 81.44 kB / 362 MB, free: 9.652 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001453/0.1152, allocations: 117.2 kB / 362.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1152, allocations: 0 / 362.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001877/0.1154, allocations: 113.7 kB / 362.2 MB, free: 9.387 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.1155, allocations: 8.062 kB / 362.2 MB, free: 9.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.1155, allocations: 4 kB / 362.2 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.1155, allocations: 4 kB / 362.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.716e-05/0.1155, allocations: 11.92 kB / 362.2 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.1156, allocations: 4 kB / 362.2 MB, free: 9.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.968e-05/0.1156, allocations: 15.92 kB / 362.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.1156, allocations: 4 kB / 362.2 MB, free: 9.336 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.0001069/0.1157, allocations: 141.6 kB / 362.4 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.1159, allocations: 89.53 kB / 362.5 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.327e-05/0.116, allocations: 16.72 kB / 362.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.116, allocations: 480 / 362.5 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.116, allocations: 4 kB / 362.5 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.116, allocations: 0 / 362.5 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002568/0.1163, allocations: 193.4 kB / 362.7 MB, free: 8.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1163, allocations: 4 kB / 362.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.605e-05/0.1163, allocations: 3.938 kB / 362.7 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.192e-06/0.1163, allocations: 4 kB / 362.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.1163, allocations: 0 / 362.7 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1163, allocations: 4 kB / 362.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.1163, allocations: 4 kB / 362.7 MB, free: 8.816 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:7947:5-7947: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.0004189/0.1168, allocations: 344.3 kB / 363 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.759e-05/0.1168, allocations: 97 kB / 363.1 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.753e-05/0.1169, allocations: 0 / 363.1 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.593e-05/0.117, allocations: 8 kB / 363.1 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.224e-05/0.117, allocations: 3.984 kB / 363.1 MB, free: 8.332 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-06/0.117, allocations: 7.938 kB / 363.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.398e-05/0.1171, allocations: 105.8 kB / 363.2 MB, free: 8.223 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1171, allocations: 0 / 363.2 MB, free: 8.223 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002879/0.1174, allocations: 12 kB / 363.3 MB, free: 8.211 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.0001155/0.1175, allocations: 107.2 kB / 363.4 MB, free: 8.094 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001742/0.1177, allocations: 67.84 kB / 363.4 MB, free: 8.027 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.1177, allocations: 0 / 363.4 MB, free: 8.027 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.349e-05/0.1177, allocations: 12.73 kB / 363.4 MB, free: 8.016 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004544/0.1182, allocations: 51.89 kB / 363.5 MB, free: 7.965 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000474/0.1187, allocations: 266.3 kB / 363.7 MB, free: 7.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000286/0.119, allocations: 0.7082 MB / 364.5 MB, free: 6.934 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.45e-05/0.119, allocations: 11.44 kB / 364.5 MB, free: 6.922 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.119, allocations: 0 / 364.5 MB, free: 6.922 MB / 302.1 MB Notification: Performance of Templates: time 0.002826/0.1219, allocations: 0.9886 MB / 365.5 MB, free: 5.934 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/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