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") [: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 4.0.0+maint.om/package.mo): time 0.0009524/0.0009527, allocations: 182.5 kB / 8.134 MB, free: 2.207 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.169/1.169, allocations: 221.4 MB / 229.9 MB, free: 3.023 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.0008812/0.0008812, allocations: 102.1 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.582e-06/6.623e-06, allocations: 0 / 336.5 MB, free: 9.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2023/0.2023, allocations: 50.4 MB / 386.9 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08232/0.2847, allocations: 76.35 MB / 463.3 MB, free: 10.54 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.2849, allocations: 87.12 kB / 463.3 MB, free: 10.45 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.003268/0.2882, allocations: 1.12 MB / 464.5 MB, free: 9.352 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.2882, allocations: 7.938 kB / 464.5 MB, free: 9.344 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.0002957/0.2885, allocations: 344.4 kB / 464.8 MB, free: 8.965 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.2886, allocations: 13.16 kB / 464.8 MB, free: 8.953 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.961e-05/0.2886, allocations: 19.73 kB / 464.8 MB, free: 8.934 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001869/0.2888, allocations: 187.5 kB / 465 MB, free: 8.711 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.2888, allocations: 4 kB / 465 MB, free: 8.707 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.559e-05/0.2889, allocations: 4.969 kB / 465 MB, free: 8.703 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001024/0.289, allocations: 32 kB / 465.1 MB, free: 8.672 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/0.2893, allocations: 176.8 kB / 465.2 MB, free: 8.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.2893, allocations: 4.781 kB / 465.2 MB, free: 8.477 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.2893, allocations: 4 kB / 465.2 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.2893, allocations: 0 / 465.2 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003393/0.2897, allocations: 342.4 kB / 465.6 MB, free: 8.098 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.2898, allocations: 104.5 kB / 465.7 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.187e-05/0.2899, allocations: 50.62 kB / 465.7 MB, free: 7.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.2899, allocations: 4 kB / 465.7 MB, free: 7.906 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.786e-05/0.29, allocations: 44.47 kB / 465.8 MB, free: 7.855 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.212e-06/0.29, allocations: 0 / 465.8 MB, free: 7.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002086/0.2902, allocations: 85.53 kB / 465.9 MB, free: 7.766 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.306e-05/0.2902, allocations: 106.8 kB / 466 MB, free: 7.637 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.2903, allocations: 136.2 kB / 466.1 MB, free: 7.496 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.2904, allocations: 25.7 kB / 466.1 MB, free: 7.465 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.715e-05/0.2904, allocations: 80.42 kB / 466.2 MB, free: 7.379 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.528e-05/0.2904, allocations: 15.95 kB / 466.2 MB, free: 7.363 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.216e-06/0.2904, allocations: 4 kB / 466.2 MB, free: 7.359 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.823e-05/0.2905, allocations: 314.8 kB / 466.5 MB, free: 7.043 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.141e-05/0.2906, allocations: 8 kB / 466.5 MB, free: 7.035 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.473e-05/0.2906, allocations: 81.38 kB / 466.6 MB, free: 6.922 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.243e-05/0.2907, allocations: 16 kB / 466.6 MB, free: 6.906 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2907, allocations: 4.5 kB / 466.6 MB, free: 6.902 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001321/0.2908, allocations: 101.4 kB / 466.7 MB, free: 6.797 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.628e-06/0.2908, allocations: 4 kB / 466.7 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.2908, allocations: 4 kB / 466.7 MB, free: 6.789 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.2909, allocations: 6.062 kB / 466.7 MB, free: 6.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.039e-05/0.2909, allocations: 11.92 kB / 466.8 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.967e-06/0.2909, allocations: 1.281 kB / 466.8 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.847e-05/0.291, allocations: 11.91 kB / 466.8 MB, free: 6.762 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.291, allocations: 8 kB / 466.8 MB, free: 6.754 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.112e-05/0.2911, allocations: 118.5 kB / 466.9 MB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001253/0.2912, allocations: 69.69 kB / 467 MB, free: 6.559 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.991e-05/0.2912, allocations: 16.59 kB / 467 MB, free: 6.539 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.2912, allocations: 3.938 kB / 467 MB, free: 6.535 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2912, allocations: 4 kB / 467 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.2913, allocations: 11.89 kB / 467 MB, free: 6.52 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001822/0.2915, allocations: 158.1 kB / 467.2 MB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2915, allocations: 4 kB / 467.2 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.428e-05/0.2915, allocations: 0 / 467.2 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.2915, allocations: 4 kB / 467.2 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.504e-06/0.2915, allocations: 0 / 467.2 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.2915, allocations: 0 / 467.2 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.2915, allocations: 1 kB / 467.2 MB, free: 6.32 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.0003007/0.2918, allocations: 358.5 kB / 467.5 MB, free: 5.941 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.95e-05/0.2919, allocations: 93 kB / 467.6 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.802e-05/0.2919, allocations: 3.906 kB / 467.6 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001058/0.292, allocations: 11.98 kB / 467.6 MB, free: 5.816 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.253e-05/0.2921, allocations: 0 / 467.6 MB, free: 5.816 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.335e-06/0.2921, allocations: 4 kB / 467.6 MB, free: 5.812 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.713e-05/0.2921, allocations: 103.3 kB / 467.7 MB, free: 5.711 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002702/0.2924, allocations: 8 kB / 467.7 MB, free: 5.703 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.357e-05/0.2925, allocations: 95.25 kB / 467.8 MB, free: 5.598 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001101/0.2926, allocations: 59.94 kB / 467.9 MB, free: 5.539 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.2926, allocations: 1.188 kB / 467.9 MB, free: 5.539 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.351e-05/0.2926, allocations: 4 kB / 467.9 MB, free: 5.535 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002944/0.2929, allocations: 60.03 kB / 467.9 MB, free: 5.48 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002846/0.2932, allocations: 138.4 kB / 468.1 MB, free: 5.316 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002637/0.2935, allocations: 0.7277 MB / 468.8 MB, free: 4.562 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2935, allocations: 0 / 468.8 MB, free: 4.562 MB / 346.7 MB Notification: Performance of Templates: time 0.002566/0.2961, allocations: 0.8127 MB / 469.6 MB, free: 3.762 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