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.001267/0.001267, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001209/0.001209, allocations: 197.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 59.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3787/0.38, allocations: 50.54 MB / 409.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2): time 0.003814/0.3838, allocations: 1.604 MB / 410.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005167/0.3844, allocations: 167.5 kB / 411 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.3845, allocations: 7.938 kB / 411 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 6.481e-05/0.3846, allocations: 7.938 kB / 411 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001912/0.3848, allocations: 15.86 kB / 411 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003589/0.3852, allocations: 47.83 kB / 411.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000151/0.3853, allocations: 63.83 kB / 411.1 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.3855, allocations: 32.2 kB / 411.2 MB, free: 15.63 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.223e-05/0.3856, allocations: 27.92 kB / 411.2 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.833e-05/0.3856, allocations: 31.8 kB / 411.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.55e-05/0.3857, allocations: 7.938 kB / 411.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.735e-05/0.3857, allocations: 8 kB / 411.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.017e-05/0.3858, allocations: 19.92 kB / 411.3 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.249e-05/0.3858, allocations: 31.8 kB / 411.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000217/0.3861, allocations: 79.64 kB / 411.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.3861, allocations: 0 / 411.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3861, allocations: 0 / 411.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.367e-05/0.3861, allocations: 0 / 411.4 MB, free: 15.43 MB / 334.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.0006775/0.3868, allocations: 384.3 kB / 411.8 MB, free: 15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.287e-05/0.3869, allocations: 12.03 kB / 411.8 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.814e-05/0.3869, allocations: 8.844 kB / 411.8 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004971/0.3874, allocations: 204 kB / 412 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.116e-05/0.3875, allocations: 8.375 kB / 412 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.778e-05/0.3875, allocations: 4.375 kB / 412 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005444/0.3881, allocations: 194.2 kB / 412.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.3881, allocations: 192 / 412.2 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.3881, allocations: 11.94 kB / 412.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.3881, allocations: 0 / 412.2 MB, free: 14.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000119/0.3883, allocations: 43.84 kB / 412.2 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006635/0.3889, allocations: 369.9 kB / 412.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/0.3892, allocations: 115.8 kB / 412.7 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001247/0.3893, allocations: 70.67 kB / 412.8 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.752e-05/0.3893, allocations: 0 / 412.8 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.3894, allocations: 34.56 kB / 412.8 MB, free: 13.79 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.3894, allocations: 0 / 412.8 MB, free: 13.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.000489/0.3899, allocations: 133.3 kB / 412.9 MB, free: 13.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.39, allocations: 123 kB / 413.1 MB, free: 13.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.3902, allocations: 140.6 kB / 413.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.451e-05/0.3902, allocations: 25.7 kB / 413.2 MB, free: 13.33 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.615e-05/0.3903, allocations: 88.41 kB / 413.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.374e-05/0.3904, allocations: 11.91 kB / 413.3 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.472e-05/0.3904, allocations: 29.7 kB / 413.4 MB, free: 13.19 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.3906, allocations: 318.8 kB / 413.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.776e-05/0.3906, allocations: 11.98 kB / 413.7 MB, free: 12.86 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.885e-05/0.3907, allocations: 81.44 kB / 413.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001581/0.3909, allocations: 117.2 kB / 413.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.3909, allocations: 0 / 413.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002032/0.3911, allocations: 113.4 kB / 414 MB, free: 12.48 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.3911, allocations: 8 kB / 414 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3912, allocations: 0 / 414 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.392e-05/0.3912, allocations: 4.344 kB / 414 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.384e-05/0.3912, allocations: 15.92 kB / 414 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.662e-05/0.3913, allocations: 8 kB / 414 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.144e-05/0.3913, allocations: 11.84 kB / 414 MB, free: 12.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.3914, allocations: 11.94 kB / 414 MB, free: 12.42 MB / 334.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.0001304/0.3915, allocations: 137.6 kB / 414.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001648/0.3917, allocations: 85.53 kB / 414.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.048e-05/0.3917, allocations: 12.72 kB / 414.3 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3917, allocations: 8 kB / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.3917, allocations: 0 / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3918, allocations: 0 / 414.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002749/0.392, allocations: 189.6 kB / 414.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.392, allocations: 0 / 414.5 MB, free: 11.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.546e-05/0.3921, allocations: 4.469 kB / 414.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.3921, allocations: 0 / 414.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.3921, allocations: 0 / 414.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.3921, allocations: 4 kB / 414.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3921, allocations: 0 / 414.5 MB, free: 11.92 MB / 334.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.0004752/0.3926, allocations: 348.3 kB / 414.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.11e-05/0.3927, allocations: 96.94 kB / 414.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/0.3927, allocations: 4 kB / 414.9 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.145e-05/0.3928, allocations: 8 kB / 414.9 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.713e-05/0.3929, allocations: 11.92 kB / 414.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.3929, allocations: 4 kB / 414.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.713e-05/0.3929, allocations: 103.2 kB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.393, allocations: 0 / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002897/0.3933, allocations: 16 kB / 415 MB, free: 11.3 MB / 334.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.0001463/0.3934, allocations: 99.19 kB / 415.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002624/0.3937, allocations: 75.84 kB / 415.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3937, allocations: 0 / 415.2 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.683e-05/0.3937, allocations: 11.98 kB / 415.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005043/0.3942, allocations: 60.78 kB / 415.3 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005566/0.3948, allocations: 204.7 kB / 415.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004746/0.3953, allocations: 0.708 MB / 416.2 MB, free: 10.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.247e-05/0.3953, allocations: 8.375 kB / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.316e-05/0.3954, allocations: 11.44 kB / 416.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of SimCode: time 1.91e-07/0.3954, allocations: 0 / 416.2 MB, free: 10.07 MB / 334.1 MB Notification: Performance of Templates: time 0.004095/0.3995, allocations: 0.7997 MB / 417 MB, free: 9.273 MB / 334.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/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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches