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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001622/0.001622, allocations: 202.3 kB / 8.541 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 225.5 MB / 234.4 MB, free: 3.297 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008481/0.0008482, allocations: 93.22 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 6.302e-06/6.342e-06, allocations: 0 / 343.1 MB, free: 8.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09671/0.09673, allocations: 51.48 MB / 394.6 MB, free: 5.156 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.242/0.3388, allocations: 77.16 MB / 471.8 MB, free: 14.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001812/0.339, allocations: 73.31 kB / 471.8 MB, free: 14.47 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.00289/0.3419, allocations: 1.124 MB / 473 MB, free: 13.9 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.747e-06/0.342, allocations: 0 / 473 MB, free: 13.9 MB / 346.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.0002688/0.3422, allocations: 353.6 kB / 473.3 MB, free: 13.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.242e-05/0.3423, allocations: 8.781 kB / 473.3 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.136e-05/0.3423, allocations: 15.81 kB / 473.3 MB, free: 13.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001626/0.3425, allocations: 195.6 kB / 473.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.3425, allocations: 4 kB / 473.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.3425, allocations: 4 kB / 473.5 MB, free: 13.28 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001156/0.3427, allocations: 34.25 kB / 473.6 MB, free: 13.26 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002587/0.3429, allocations: 172.3 kB / 473.7 MB, free: 13.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.3429, allocations: 3.938 kB / 473.7 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.343, allocations: 4 kB / 473.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.343, allocations: 3.984 kB / 473.8 MB, free: 13.11 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000337/0.3433, allocations: 344 kB / 474.1 MB, free: 12.76 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001092/0.3434, allocations: 102.6 kB / 474.2 MB, free: 12.65 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.342e-05/0.3435, allocations: 47.95 kB / 474.2 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.872e-05/0.3435, allocations: 4 kB / 474.2 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.035e-05/0.3436, allocations: 42.06 kB / 474.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.593e-06/0.3436, allocations: 0 / 474.3 MB, free: 12.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002278/0.3438, allocations: 90.53 kB / 474.4 MB, free: 12.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.901e-05/0.3439, allocations: 110.7 kB / 474.5 MB, free: 12.35 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.846e-05/0.3439, allocations: 123.8 kB / 474.6 MB, free: 12.24 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.344, allocations: 25.7 kB / 474.6 MB, free: 12.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.913e-05/0.344, allocations: 83.61 kB / 474.7 MB, free: 12.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.429e-05/0.344, allocations: 17.52 kB / 474.7 MB, free: 12.11 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-06/0.344, allocations: 0 / 474.7 MB, free: 12.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.544e-05/0.3441, allocations: 317.1 kB / 475 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.977e-05/0.3441, allocations: 10.94 kB / 475 MB, free: 11.79 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.789e-05/0.3442, allocations: 79.58 kB / 475.1 MB, free: 11.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.256e-05/0.3442, allocations: 21.67 kB / 475.1 MB, free: 11.67 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3442, allocations: 4 kB / 475.1 MB, free: 11.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001157/0.3443, allocations: 94.81 kB / 475.2 MB, free: 11.58 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.3443, allocations: 7.281 kB / 475.2 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.3444, allocations: 4 kB / 475.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.3444, allocations: 4 kB / 475.3 MB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.708e-05/0.3444, allocations: 8.281 kB / 475.3 MB, free: 11.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.513e-06/0.3444, allocations: 11.28 kB / 475.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.126e-05/0.3445, allocations: 4 kB / 475.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.3445, allocations: 9.453 kB / 475.3 MB, free: 11.54 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 5.381e-05/0.3446, allocations: 114 kB / 475.4 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.3447, allocations: 72.2 kB / 475.5 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.035e-05/0.3448, allocations: 11.94 kB / 475.5 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.3448, allocations: 3.234 kB / 475.5 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3448, allocations: 7.844 kB / 475.5 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3448, allocations: 8 kB / 475.5 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001628/0.3449, allocations: 150.6 kB / 475.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-06/0.345, allocations: 8.125 kB / 475.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.439e-05/0.345, allocations: 3.375 kB / 475.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.345, allocations: 4 kB / 475.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.345, allocations: 0 / 475.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.345, allocations: 0 / 475.7 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.345, allocations: 0 / 475.7 MB, free: 11.18 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:7187:5-7187: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 detectJacobianSparsePattern (simulation): time 0.0002538/0.3453, allocations: 354.1 kB / 476 MB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.592e-05/0.3453, allocations: 95.19 kB / 476.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.849e-05/0.3453, allocations: 3.906 kB / 476.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.3455, allocations: 8 kB / 476.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.837e-05/0.3455, allocations: 0 / 476.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.772e-06/0.3455, allocations: 4 kB / 476.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.995e-05/0.3456, allocations: 101.4 kB / 476.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002693/0.3458, allocations: 8 kB / 476.2 MB, free: 10.63 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 9.565e-05/0.3459, allocations: 102.6 kB / 476.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000116/0.3461, allocations: 57.88 kB / 476.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3461, allocations: 1.188 kB / 476.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.495e-05/0.3461, allocations: 7.25 kB / 476.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.3464, allocations: 50.56 kB / 476.4 MB, free: 10.45 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002774/0.3467, allocations: 144.3 kB / 476.6 MB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.3469, allocations: 0.7204 MB / 477.3 MB, free: 9.574 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3469, allocations: 4 kB / 477.3 MB, free: 9.57 MB / 346.7 MB Notification: Performance of Templates: time 0.002522/0.3494, allocations: 0.8135 MB / 478.1 MB, free: 9.105 MB / 346.7 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","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches