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.001709/0.001709, allocations: 106.6 kB / 17.06 MB, free: 6 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.002043/0.002043, allocations: 191 kB / 18 MB, free: 5.086 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.597/1.597, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001082/0.001082, allocations: 43.92 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3799/0.381, allocations: 49.43 MB / 400.7 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.00283/0.3839, allocations: 1.597 MB / 402.3 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004815/0.3844, allocations: 175.3 kB / 402.5 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.868e-05/0.3845, allocations: 0 / 402.5 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.516e-05/0.3846, allocations: 7.875 kB / 402.5 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001309/0.3847, allocations: 11.94 kB / 402.5 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003055/0.385, allocations: 51.81 kB / 402.6 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001366/0.3852, allocations: 59.84 kB / 402.6 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.3853, allocations: 40.19 kB / 402.7 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.599e-05/0.3854, allocations: 23.92 kB / 402.7 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.429e-05/0.3854, allocations: 35.78 kB / 402.7 MB, free: 6.879 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.138e-05/0.3855, allocations: 4 kB / 402.7 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.57e-05/0.3855, allocations: 8 kB / 402.7 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.48e-05/0.3856, allocations: 15.92 kB / 402.7 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.57e-05/0.3856, allocations: 35.8 kB / 402.8 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001359/0.3858, allocations: 75.66 kB / 402.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3858, allocations: 0 / 402.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3858, allocations: 4 kB / 402.9 MB, free: 6.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.145e-06/0.3858, allocations: 0 / 402.9 MB, free: 6.738 MB / 318.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.0006314/0.3864, allocations: 391.1 kB / 403.2 MB, free: 6.312 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.555e-05/0.3865, allocations: 15.89 kB / 403.3 MB, free: 6.297 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.771e-05/0.3865, allocations: 8.844 kB / 403.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.3869, allocations: 200.1 kB / 403.5 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.194e-05/0.3869, allocations: 8.375 kB / 403.5 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.407e-05/0.3869, allocations: 8.375 kB / 403.5 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004509/0.3874, allocations: 188.6 kB / 403.7 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.3874, allocations: 192 / 403.7 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.266e-05/0.3875, allocations: 15.92 kB / 403.7 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.3875, allocations: 0 / 403.7 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001048/0.3876, allocations: 39.92 kB / 403.7 MB, free: 5.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004628/0.3881, allocations: 373.8 kB / 404.1 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001683/0.3882, allocations: 123.7 kB / 404.2 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001223/0.3884, allocations: 62.69 kB / 404.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.3884, allocations: 0 / 404.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.3884, allocations: 38.5 kB / 404.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.232e-06/0.3884, allocations: 0 / 404.3 MB, free: 5.094 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003399/0.3888, allocations: 129.5 kB / 404.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.278e-05/0.3889, allocations: 114.8 kB / 404.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.389, allocations: 145.7 kB / 404.7 MB, free: 4.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.389, allocations: 25.7 kB / 404.7 MB, free: 4.641 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.691e-05/0.3891, allocations: 84.42 kB / 404.8 MB, free: 4.551 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.604e-05/0.3891, allocations: 11.89 kB / 404.8 MB, free: 4.539 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.55e-05/0.3892, allocations: 33.72 kB / 404.8 MB, free: 4.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.3893, allocations: 319.1 kB / 405.1 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.462e-05/0.3893, allocations: 15.98 kB / 405.2 MB, free: 4.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.217e-05/0.3894, allocations: 81.44 kB / 405.2 MB, free: 4.051 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001269/0.3895, allocations: 109.2 kB / 405.3 MB, free: 3.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3896, allocations: 4 kB / 405.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001724/0.3897, allocations: 117.7 kB / 405.5 MB, free: 3.785 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.3898, allocations: 11.94 kB / 405.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.3898, allocations: 0 / 405.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.3898, allocations: 4 kB / 405.5 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.048e-05/0.3898, allocations: 4 kB / 405.5 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.433e-05/0.3898, allocations: 4.375 kB / 405.5 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.562e-05/0.3899, allocations: 11.92 kB / 405.5 MB, free: 3.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.3899, allocations: 8 kB / 405.5 MB, free: 3.742 MB / 318.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.496e-05/0.39, allocations: 133.8 kB / 405.6 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.3902, allocations: 97.31 kB / 405.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.623e-05/0.3902, allocations: 20.7 kB / 405.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3902, allocations: 0 / 405.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.3902, allocations: 0 / 405.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.3902, allocations: 4 kB / 405.8 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002363/0.3905, allocations: 181.6 kB / 405.9 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.3905, allocations: 3.984 kB / 405.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.672e-05/0.3905, allocations: 4 kB / 405.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3905, allocations: 0 / 405.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.017e-05/0.3905, allocations: 4 kB / 405.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.746e-06/0.3905, allocations: 4 kB / 405.9 MB, free: 3.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3905, allocations: 3.938 kB / 405.9 MB, free: 3.227 MB / 318.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: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.000377/0.3909, allocations: 344.4 kB / 406.3 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.223e-05/0.391, allocations: 104.9 kB / 406.4 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.703e-05/0.391, allocations: 0 / 406.4 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.479e-05/0.3911, allocations: 8 kB / 406.4 MB, free: 2.742 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.48e-05/0.3912, allocations: 4 kB / 406.4 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.226e-06/0.3912, allocations: 4 kB / 406.4 MB, free: 2.734 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.92e-05/0.3913, allocations: 114.3 kB / 406.5 MB, free: 2.625 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3913, allocations: 3.938 kB / 406.5 MB, free: 2.621 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002853/0.3916, allocations: 15.91 kB / 406.5 MB, free: 2.605 MB / 318.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.0001217/0.3917, allocations: 110.5 kB / 406.6 MB, free: 2.492 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001733/0.3919, allocations: 67.84 kB / 406.7 MB, free: 2.426 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3919, allocations: 0 / 406.7 MB, free: 2.426 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.271e-05/0.3919, allocations: 8.688 kB / 406.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004489/0.3924, allocations: 56.39 kB / 406.8 MB, free: 2.363 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000406/0.3928, allocations: 215.6 kB / 407 MB, free: 2.121 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.3931, allocations: 0.7002 MB / 407.7 MB, free: 1.395 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.785e-05/0.3932, allocations: 8.422 kB / 407.7 MB, free: 1.387 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.9e-05/0.3932, allocations: 11.44 kB / 407.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3932, allocations: 0 / 407.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of Templates: time 0.003329/0.3965, allocations: 0.788 MB / 408.5 MB, free: 0.5898 MB / 318.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/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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches