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.001986/0.001986, allocations: 110.3 kB / 17.06 MB, free: 6.125 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.002178/0.002178, allocations: 191 kB / 18 MB, free: 5.207 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.483/1.483, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00104/0.00104, allocations: 39.94 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3838/0.3849, allocations: 49.45 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.002972/0.3879, allocations: 1.585 MB / 402.3 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004389/0.3883, allocations: 175.3 kB / 402.5 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.856e-05/0.3884, allocations: 0 / 402.5 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.89e-05/0.3885, allocations: 11.86 kB / 402.5 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001494/0.3887, allocations: 11.94 kB / 402.5 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002688/0.3889, allocations: 55.81 kB / 402.6 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001175/0.3891, allocations: 59.84 kB / 402.6 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.3892, allocations: 36.19 kB / 402.7 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.342e-05/0.3893, allocations: 23.92 kB / 402.7 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.991e-05/0.3893, allocations: 35.78 kB / 402.7 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.337e-05/0.3894, allocations: 8 kB / 402.7 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.478e-05/0.3894, allocations: 4 kB / 402.7 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.857e-05/0.3894, allocations: 19.92 kB / 402.7 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.184e-05/0.3895, allocations: 31.81 kB / 402.8 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.3896, allocations: 75.64 kB / 402.9 MB, free: 6.738 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.3896, allocations: 0 / 402.9 MB, free: 6.738 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3896, allocations: 0 / 402.9 MB, free: 6.738 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.3897, 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.0005127/0.3902, allocations: 400.2 kB / 403.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.3902, allocations: 8.031 kB / 403.3 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.3903, allocations: 8.844 kB / 403.3 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002224/0.3905, allocations: 200.1 kB / 403.5 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.3905, allocations: 4.375 kB / 403.5 MB, free: 6.047 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.3905, allocations: 8.375 kB / 403.5 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003696/0.3909, allocations: 196.8 kB / 403.7 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.3909, allocations: 192 / 403.7 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.391, allocations: 7.875 kB / 403.7 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.391, allocations: 0 / 403.7 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001078/0.3911, allocations: 47.91 kB / 403.7 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004116/0.3915, allocations: 365.9 kB / 404.1 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001654/0.3917, allocations: 115.8 kB / 404.2 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.238e-05/0.3918, allocations: 66.62 kB / 404.3 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.696e-05/0.3918, allocations: 4 kB / 404.3 MB, free: 5.141 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.3918, allocations: 42.5 kB / 404.3 MB, free: 5.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.493e-06/0.3918, allocations: 0 / 404.3 MB, free: 5.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003344/0.3922, allocations: 129.4 kB / 404.4 MB, free: 4.957 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.738e-05/0.3923, allocations: 111.1 kB / 404.5 MB, free: 4.824 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.3924, allocations: 145.7 kB / 404.7 MB, free: 4.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.3924, allocations: 25.7 kB / 404.7 MB, free: 4.641 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.89e-05/0.3925, allocations: 88.42 kB / 404.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.429e-05/0.3925, allocations: 7.906 kB / 404.8 MB, free: 4.539 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.497e-05/0.3925, allocations: 33.7 kB / 404.8 MB, free: 4.5 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.3927, allocations: 318.8 kB / 405.1 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.188e-05/0.3927, allocations: 12 kB / 405.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.497e-05/0.3928, allocations: 85.38 kB / 405.2 MB, free: 4.051 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.3929, allocations: 113.2 kB / 405.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3929, allocations: 4 kB / 405.3 MB, free: 3.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001711/0.3931, allocations: 117.3 kB / 405.5 MB, free: 3.781 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.3931, allocations: 10.81 kB / 405.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.3931, allocations: 4 kB / 405.5 MB, free: 3.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.3932, allocations: 4.344 kB / 405.5 MB, free: 3.766 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.873e-05/0.3932, allocations: 8 kB / 405.5 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.3932, allocations: 0 / 405.5 MB, free: 3.758 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.637e-05/0.3933, allocations: 11.94 kB / 405.5 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.193e-05/0.3933, allocations: 19.86 kB / 405.5 MB, free: 3.727 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.738e-05/0.3934, allocations: 127.9 kB / 405.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.3935, allocations: 85.81 kB / 405.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.111e-05/0.3936, allocations: 16.72 kB / 405.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.3936, allocations: 3.984 kB / 405.7 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.3936, allocations: 8 kB / 405.8 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.3936, allocations: 96 / 405.8 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002143/0.3938, allocations: 185.5 kB / 405.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3938, allocations: 0 / 405.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.427e-05/0.3939, allocations: 7.984 kB / 405.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3939, allocations: 0 / 405.9 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.3939, allocations: 8 kB / 406 MB, free: 3.227 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3939, allocations: 3.938 kB / 406 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3939, allocations: 0 / 406 MB, free: 3.223 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.0003368/0.3942, allocations: 340.4 kB / 406.3 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.658e-05/0.3943, allocations: 104.9 kB / 406.4 MB, free: 2.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.3943, allocations: 4 kB / 406.4 MB, free: 2.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.379e-05/0.3944, allocations: 8 kB / 406.4 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.475e-05/0.3945, allocations: 7.938 kB / 406.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.3945, allocations: 4 kB / 406.4 MB, free: 2.727 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.943e-05/0.3946, allocations: 111.2 kB / 406.5 MB, free: 2.617 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3946, allocations: 0 / 406.5 MB, free: 2.617 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002798/0.3949, allocations: 15.91 kB / 406.5 MB, free: 2.602 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.0001167/0.395, allocations: 107.7 kB / 406.6 MB, free: 2.488 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001751/0.3952, allocations: 71.84 kB / 406.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3952, allocations: 0 / 406.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.963e-05/0.3952, allocations: 4 kB / 406.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005851/0.3958, allocations: 59.89 kB / 406.8 MB, free: 2.355 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005072/0.3963, allocations: 204.5 kB / 407 MB, free: 2.125 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000322/0.3967, allocations: 0.708 MB / 407.7 MB, free: 1.391 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.574e-05/0.3967, allocations: 4.438 kB / 407.7 MB, free: 1.387 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.232e-05/0.3967, allocations: 15.42 kB / 407.7 MB, free: 1.371 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3967, allocations: 0 / 407.7 MB, free: 1.371 MB / 318.1 MB Notification: Performance of Templates: time 0.003154/0.3999, allocations: 0.7809 MB / 408.5 MB, free: 0.5938 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