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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001479/0.001479, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000836/0.0008361, allocations: 101.3 kB / 281.2 MB, free: 5.348 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.76e-05/1.762e-05, allocations: 4 kB / 337 MB, free: 10.05 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08748/0.08751, allocations: 50.42 MB / 387.5 MB, free: 7.598 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2928/0.3804, allocations: 76.42 MB / 463.9 MB, free: 2.48 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000292/0.3807, allocations: 79.95 kB / 464 MB, free: 2.402 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003832/0.3846, allocations: 1.442 MB / 465.4 MB, free: 0.9648 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3846, allocations: 3.938 kB / 465.4 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.3846, allocations: 0 / 465.4 MB, free: 0.9609 MB / 330.7 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.0004095/0.385, allocations: 359 kB / 465.8 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.965e-05/0.3851, allocations: 8.031 kB / 465.8 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.27e-05/0.3851, allocations: 15.77 kB / 465.8 MB, free: 0.543 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002308/0.3854, allocations: 191.8 kB / 466 MB, free: 324 kB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.233e-05/0.3854, allocations: 7.938 kB / 466 MB, free: 316 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.81e-05/0.3854, allocations: 4 kB / 466 MB, free: 312 kB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000122/0.3856, allocations: 40 kB / 466 MB, free: 272 kB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003186/0.3859, allocations: 167.3 kB / 466.2 MB, free: 84 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.287e-06/0.3859, allocations: 0 / 466.2 MB, free: 84 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.3859, allocations: 3.953 kB / 466.2 MB, free: 80 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.386, allocations: 4 kB / 466.2 MB, free: 76 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004114/0.3864, allocations: 338.5 kB / 466.5 MB, free: 15.7 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001367/0.3865, allocations: 103.7 kB / 466.6 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.887e-05/0.3866, allocations: 50.7 kB / 466.7 MB, free: 15.51 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.3866, allocations: 8 kB / 466.7 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.3867, allocations: 34.69 kB / 466.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.513e-06/0.3867, allocations: 0 / 466.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002298/0.3869, allocations: 93.47 kB / 466.8 MB, free: 15.36 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.789e-05/0.387, allocations: 110.8 kB / 466.9 MB, free: 15.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.3871, allocations: 134.6 kB / 467 MB, free: 15.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.524e-05/0.3871, allocations: 25.7 kB / 467.1 MB, free: 15.06 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.383e-05/0.3872, allocations: 88.41 kB / 467.2 MB, free: 14.96 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.288e-05/0.3872, allocations: 7.906 kB / 467.2 MB, free: 14.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.596e-06/0.3872, allocations: 0 / 467.2 MB, free: 14.96 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001371/0.3873, allocations: 318.8 kB / 467.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.38e-05/0.3874, allocations: 15.94 kB / 467.5 MB, free: 14.62 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.825e-05/0.3874, allocations: 69.45 kB / 467.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.857e-05/0.3875, allocations: 27.92 kB / 467.6 MB, free: 14.49 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.3875, allocations: 0 / 467.6 MB, free: 14.49 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001408/0.3876, allocations: 97.39 kB / 467.7 MB, free: 14.39 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.3877, allocations: 4.344 kB / 467.7 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.3877, allocations: 8.094 kB / 467.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.3877, allocations: 7.938 kB / 467.7 MB, free: 14.37 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.332e-05/0.3877, allocations: 11.89 kB / 467.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.3878, allocations: 4 kB / 467.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.654e-05/0.3878, allocations: 8 kB / 467.7 MB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.988e-06/0.3878, allocations: 4 kB / 467.7 MB, free: 14.34 MB / 346.7 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 (sample1.u,xor1.y,xor1.u2,xor1.u1,xor.y,xor.u2,xor.u1,integerConstant.y,sample2.y,hold1.u,hold1.y,sample1.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.631e-05/0.3879, allocations: 118.3 kB / 467.8 MB, free: 14.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.388, allocations: 73.55 kB / 467.9 MB, free: 14.15 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.803e-05/0.3881, allocations: 20.61 kB / 467.9 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3881, allocations: 7.984 kB / 467.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.3881, allocations: 3.953 kB / 467.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.998e-06/0.3881, allocations: 0 / 467.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002063/0.3883, allocations: 158.2 kB / 468.1 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.3883, allocations: 0 / 468.1 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.89e-05/0.3884, allocations: 7.984 kB / 468.1 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3884, allocations: 0 / 468.1 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.3884, allocations: 0 / 468.1 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.3884, allocations: 4 kB / 468.1 MB, free: 13.92 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.3884, allocations: 0 / 468.1 MB, free: 13.92 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:307:7-307:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Sorry - Support for Discrete Equation Systems is not yet implemented) 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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317: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/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7358:5-7358: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.0003511/0.3888, allocations: 357.3 kB / 468.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.791e-05/0.3889, allocations: 97 kB / 468.6 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.577e-05/0.3889, allocations: 0 / 468.6 MB, free: 13.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.18e-05/0.389, allocations: 8 kB / 468.6 MB, free: 13.42 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.583e-05/0.389, allocations: 7.938 kB / 468.6 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-06/0.389, allocations: 4 kB / 468.6 MB, free: 13.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.148e-05/0.3891, allocations: 100.8 kB / 468.7 MB, free: 13.31 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3891, allocations: 0 / 468.7 MB, free: 13.31 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000263/0.3894, allocations: 12 kB / 468.7 MB, free: 13.3 MB / 346.7 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 (sample1.u,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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001477/0.3895, allocations: 103.2 kB / 468.8 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001201/0.3896, allocations: 47.94 kB / 468.8 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3897, allocations: 0 / 468.8 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.815e-05/0.3897, allocations: 11.94 kB / 468.8 MB, free: 13.12 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.39, allocations: 47.98 kB / 468.9 MB, free: 13.08 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003004/0.3903, allocations: 143.9 kB / 469 MB, free: 12.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.3906, allocations: 0.7079 MB / 469.7 MB, free: 12.18 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.232e-05/0.3907, allocations: 4.438 kB / 469.7 MB, free: 12.17 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.281e-05/0.3907, allocations: 11.44 kB / 469.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3907, allocations: 3.938 kB / 469.8 MB, free: 12.16 MB / 346.7 MB Notification: Performance of Templates: time 0.00254/0.3933, allocations: 0.6493 MB / 470.4 MB, free: 11.51 MB / 346.7 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches