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.001411/0.001411, allocations: 112.1 kB / 17.29 MB, free: 6.219 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.001435/0.001435, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.373/1.373, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.0011, allocations: 43.11 kB / 300.8 MB, free: 6.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09235/0.09347, allocations: 49.45 MB / 350.2 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003161/0.09667, allocations: 1.651 MB / 351.9 MB, free: 3.102 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004391/0.09714, allocations: 171.4 kB / 352.1 MB, free: 2.934 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.844e-05/0.09725, allocations: 4 kB / 352.1 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.448e-05/0.09731, allocations: 3.938 kB / 352.1 MB, free: 2.926 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001413/0.09749, allocations: 7.922 kB / 352.1 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000268/0.09776, allocations: 43.91 kB / 352.1 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001153/0.09789, allocations: 67.83 kB / 352.2 MB, free: 2.809 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001277/0.09802, allocations: 28.22 kB / 352.2 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.593e-05/0.09808, allocations: 23.92 kB / 352.2 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.354e-05/0.09814, allocations: 27.86 kB / 352.3 MB, free: 2.73 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.033e-05/0.09816, allocations: 7.938 kB / 352.3 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.444e-05/0.09818, allocations: 8 kB / 352.3 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.445e-05/0.09824, allocations: 23.91 kB / 352.3 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.969e-05/0.09829, allocations: 35.8 kB / 352.3 MB, free: 2.656 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000111/0.0984, allocations: 55.84 kB / 352.4 MB, free: 2.602 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.09841, allocations: 0 / 352.4 MB, free: 2.602 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.09842, allocations: 0 / 352.4 MB, free: 2.602 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.148e-06/0.09844, allocations: 7.938 kB / 352.4 MB, free: 2.594 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.0004481/0.09889, allocations: 383.4 kB / 352.8 MB, free: 2.168 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.09893, allocations: 11.89 kB / 352.8 MB, free: 2.156 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.194e-05/0.09898, allocations: 16.75 kB / 352.8 MB, free: 2.141 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.09917, allocations: 200 kB / 353 MB, free: 1.906 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.0992, allocations: 4.375 kB / 353 MB, free: 1.902 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.394e-05/0.09922, allocations: 12.38 kB / 353 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003668/0.09959, allocations: 183.5 kB / 353.2 MB, free: 1.691 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.09961, allocations: 192 / 353.2 MB, free: 1.691 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.09963, allocations: 7.938 kB / 353.2 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.09965, allocations: 4 kB / 353.2 MB, free: 1.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001035/0.09975, allocations: 43.91 kB / 353.2 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003842/0.1001, allocations: 365.8 kB / 353.6 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001636/0.1003, allocations: 123.8 kB / 353.7 MB, free: 1.074 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.195e-05/0.1004, allocations: 62.69 kB / 353.8 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.1005, allocations: 0 / 353.8 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.1005, allocations: 42.56 kB / 353.8 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.052e-06/0.1005, allocations: 7.938 kB / 353.8 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003296/0.1008, allocations: 125.5 kB / 354 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.37e-05/0.1009, allocations: 115.1 kB / 354.1 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.101, allocations: 148.7 kB / 354.2 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.378e-05/0.101, allocations: 25.7 kB / 354.2 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.832e-05/0.1011, allocations: 88.41 kB / 354.3 MB, free: 412 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.476e-05/0.1011, allocations: 11.94 kB / 354.3 MB, free: 400 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.386e-05/0.1012, allocations: 45.8 kB / 354.4 MB, free: 348 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.964e-05/0.1013, allocations: 318.8 kB / 354.7 MB, free: 20 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.194e-05/0.1013, allocations: 12 kB / 354.7 MB, free: 8 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.773e-05/0.1014, allocations: 81.42 kB / 354.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000118/0.1015, allocations: 113.1 kB / 354.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.1015, allocations: 4 kB / 354.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001803/0.1017, allocations: 113.6 kB / 355 MB, free: 15.63 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.1017, allocations: 8 kB / 355 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1018, allocations: 0 / 355 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.1018, allocations: 4 kB / 355 MB, free: 15.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.265e-05/0.1018, allocations: 7.938 kB / 355 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.1018, allocations: 4 kB / 355 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.872e-05/0.1019, allocations: 15.84 kB / 355 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.055e-05/0.1019, allocations: 7.984 kB / 355.1 MB, free: 15.58 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 8.983e-05/0.102, allocations: 137.9 kB / 355.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001301/0.1021, allocations: 81.53 kB / 355.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.997e-05/0.1022, allocations: 16.72 kB / 355.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.1022, allocations: 0 / 355.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.1022, allocations: 3.984 kB / 355.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.738e-06/0.1022, allocations: 4 kB / 355.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002204/0.1024, allocations: 189.4 kB / 355.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1024, allocations: 0 / 355.5 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.794e-05/0.1025, allocations: 7.984 kB / 355.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.1025, allocations: 4 kB / 355.5 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.1025, allocations: 8 kB / 355.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.145e-06/0.1025, allocations: 0 / 355.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1025, allocations: 3.938 kB / 355.5 MB, free: 15.07 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:7953:5-7953: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.0003679/0.1029, allocations: 336.4 kB / 355.8 MB, free: 14.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.023e-05/0.1029, allocations: 96.98 kB / 355.9 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.103, allocations: 8 kB / 355.9 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.535e-05/0.1031, allocations: 4.094 kB / 355.9 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.998e-05/0.1031, allocations: 11.92 kB / 355.9 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.1031, allocations: 4 kB / 356 MB, free: 14.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.411e-05/0.1032, allocations: 103.2 kB / 356.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1032, allocations: 4 kB / 356.1 MB, free: 14.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.1035, allocations: 16 kB / 356.1 MB, free: 14.46 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.843e-05/0.1036, allocations: 114.8 kB / 356.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001868/0.1038, allocations: 71.84 kB / 356.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.1038, allocations: 0.6875 kB / 356.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.543e-05/0.1038, allocations: 19.94 kB / 356.3 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.1043, allocations: 51.95 kB / 356.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003876/0.1047, allocations: 261.5 kB / 356.6 MB, free: 13.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002431/0.1049, allocations: 0.7041 MB / 357.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.185e-05/0.105, allocations: 11.44 kB / 357.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.105, allocations: 0 / 357.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of Templates: time 0.00245/0.1074, allocations: 0.9832 MB / 358.3 MB, free: 12.18 MB / 302.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/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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches