Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y|step.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo): time 0.001004/0.001004, allocations: 186.5 kB / 7.844 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001006/0.001005, allocations: 89 kB / 261.5 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07773/0.07773, allocations: 12.6 MB / 322 MB, free: 0.8945 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.173e-06/7.293e-06, allocations: 0 / 378.4 MB, free: 75.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08858/0.08861, allocations: 50.37 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2908/0.3794, allocations: 77.49 MB / 0.4944 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.3797, allocations: 78.39 kB / 0.4945 GB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003535/0.3833, allocations: 1.092 MB / 0.4955 GB, free: 11.6 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.3833, allocations: 3.938 kB / 0.4955 GB, free: 11.59 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.0003026/0.3836, allocations: 358 kB / 0.4959 GB, free: 11.24 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.3837, allocations: 7.844 kB / 0.4959 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.929e-05/0.3837, allocations: 11.56 kB / 0.4959 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.384, allocations: 186.5 kB / 0.4961 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.385e-05/0.384, allocations: 7.781 kB / 0.4961 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.396e-05/0.3841, allocations: 3.938 kB / 0.4961 GB, free: 11.03 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001156/0.3842, allocations: 46.12 kB / 0.4961 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.3845, allocations: 155.1 kB / 0.4963 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.3845, allocations: 0 / 0.4963 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.3845, allocations: 0.5625 kB / 0.4963 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.576e-06/0.3845, allocations: 7.75 kB / 0.4963 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003619/0.3849, allocations: 337.8 kB / 0.4966 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001309/0.385, allocations: 108.2 kB / 0.4967 GB, free: 10.54 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.798e-05/0.3851, allocations: 62.81 kB / 0.4968 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.832e-05/0.3852, allocations: 1.688 kB / 0.4968 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.3852, allocations: 38.38 kB / 0.4968 GB, free: 10.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.683e-06/0.3852, allocations: 0 / 0.4968 GB, free: 10.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002237/0.3854, allocations: 93.64 kB / 0.4969 GB, free: 10.41 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.3855, allocations: 108 kB / 0.497 GB, free: 10.29 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.3856, allocations: 128 kB / 0.4971 GB, free: 10.19 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.032e-05/0.3856, allocations: 25.7 kB / 0.4971 GB, free: 10.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.461e-05/0.3857, allocations: 85 kB / 0.4972 GB, free: 10.07 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.403e-05/0.3857, allocations: 8.438 kB / 0.4972 GB, free: 10.07 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-06/0.3857, allocations: 0 / 0.4972 GB, free: 10.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.841e-05/0.3858, allocations: 325.1 kB / 0.4975 GB, free: 9.754 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.161e-05/0.3858, allocations: 14.66 kB / 0.4976 GB, free: 9.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.398e-05/0.3859, allocations: 75.86 kB / 0.4976 GB, free: 9.66 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.864e-05/0.3859, allocations: 17.38 kB / 0.4976 GB, free: 9.656 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.3859, allocations: 3.812 kB / 0.4976 GB, free: 9.656 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001214/0.3861, allocations: 97.3 kB / 0.4977 GB, free: 9.605 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/0.3861, allocations: 7.688 kB / 0.4977 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.3861, allocations: 0 / 0.4977 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.3861, allocations: 5.109 kB / 0.4977 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.959e-05/0.3861, allocations: 9.094 kB / 0.4978 GB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.3861, allocations: 4.516 kB / 0.4978 GB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.379e-05/0.3862, allocations: 5.094 kB / 0.4978 GB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.3862, allocations: 8.031 kB / 0.4978 GB, free: 9.602 MB / 330.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,hold.u,hold.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 6.095e-05/0.3863, allocations: 113.9 kB / 0.4979 GB, free: 9.488 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001254/0.3864, allocations: 84.11 kB / 0.498 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.897e-05/0.3865, allocations: 15.77 kB / 0.498 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.3865, allocations: 3.844 kB / 0.498 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3865, allocations: 1.172 kB / 0.498 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.3865, allocations: 3.984 kB / 0.498 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001835/0.3867, allocations: 151.8 kB / 0.4981 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3867, allocations: 0.6562 kB / 0.4981 GB, free: 9.277 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.665e-05/0.3867, allocations: 11.45 kB / 0.4981 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.3868, allocations: 0.6562 kB / 0.4981 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.035e-05/0.3868, allocations: 0 / 0.4981 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.3868, allocations: 8.531 kB / 0.4982 GB, free: 9.27 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.3868, allocations: 0 / 0.4982 GB, free: 9.27 MB / 330.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 hold.y hold.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) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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 hold.y hold.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) hold.u = xor1.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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.0003156/0.3871, allocations: 352.7 kB / 0.4985 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.13e-05/0.3872, allocations: 93.27 kB / 0.4986 GB, free: 8.906 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/0.3872, allocations: 4.547 kB / 0.4986 GB, free: 8.906 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.964e-05/0.3873, allocations: 0 / 0.4986 GB, free: 8.906 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.786e-05/0.3873, allocations: 5.203 kB / 0.4986 GB, free: 8.906 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.3873, allocations: 11.25 kB / 0.4986 GB, free: 8.902 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.738e-05/0.3874, allocations: 100.6 kB / 0.4987 GB, free: 8.828 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002642/0.3877, allocations: 11.53 kB / 0.4987 GB, free: 8.828 MB / 330.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,hold.y,sample1.y,hold.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 8.031e-05/0.3878, allocations: 99.16 kB / 0.4988 GB, free: 8.734 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001149/0.3879, allocations: 50.69 kB / 0.4988 GB, free: 8.73 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.3879, allocations: 0.6875 kB / 0.4988 GB, free: 8.73 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.551e-05/0.3879, allocations: 14.97 kB / 0.4989 GB, free: 8.723 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.3882, allocations: 53.19 kB / 0.4989 GB, free: 8.711 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002844/0.3885, allocations: 135.7 kB / 0.499 GB, free: 8.613 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002224/0.3888, allocations: 0.7226 MB / 0.4997 GB, free: 7.906 MB / 330.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3888, allocations: 0 / 0.4997 GB, free: 7.906 MB / 330.7 MB Notification: Performance of Templates: time 0.002732/0.3915, allocations: 0.8148 MB / 0.5005 GB, free: 7.828 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches