Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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.001608/0.001608, allocations: 184.5 kB / 7.844 MB, free: 2.477 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.332/1.332, allocations: 205.2 MB / 213.5 MB, free: 13.87 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.0009777/0.0009777, allocations: 86.36 kB / 261.5 MB, free: 13.56 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.08118/0.08118, allocations: 12.59 MB / 322 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.061e-06/6.883e-06, allocations: 0 / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09755/0.09758, allocations: 50.37 MB / 428.8 MB, free: 25.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3059/0.4035, allocations: 77.62 MB / 0.4945 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.4038, allocations: 74.22 kB / 0.4946 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.003934/0.4078, allocations: 1.296 MB / 0.4958 GB, free: 11.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.4078, allocations: 3.938 kB / 0.4959 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.0003458/0.4082, allocations: 384.1 kB / 0.4962 GB, free: 11.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.4082, allocations: 7.812 kB / 0.4962 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.573e-05/0.4082, allocations: 19.53 kB / 0.4962 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002366/0.4085, allocations: 196 kB / 0.4964 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.4085, allocations: 3.844 kB / 0.4964 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.355e-05/0.4085, allocations: 3.938 kB / 0.4964 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000138/0.4087, allocations: 54.19 kB / 0.4965 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003034/0.409, allocations: 190.2 kB / 0.4967 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.409, allocations: 0 / 0.4967 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/0.409, allocations: 0 / 0.4967 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.409, allocations: 0 / 0.4967 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003833/0.4094, allocations: 365.4 kB / 0.497 GB, free: 10.58 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001244/0.4096, allocations: 116.6 kB / 0.4971 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.4097, allocations: 63.78 kB / 0.4972 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.568e-05/0.4097, allocations: 15.2 kB / 0.4972 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.493e-05/0.4097, allocations: 36.11 kB / 0.4972 GB, free: 10.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.523e-06/0.4097, allocations: 0 / 0.4972 GB, free: 10.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002387/0.41, allocations: 108.9 kB / 0.4973 GB, free: 10.39 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.41, allocations: 106.7 kB / 0.4974 GB, free: 10.27 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.682e-05/0.4101, allocations: 143.9 kB / 0.4976 GB, free: 10.17 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.278e-06/0.4102, allocations: 33.7 kB / 0.4976 GB, free: 10.13 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.992e-05/0.4102, allocations: 90.08 kB / 0.4977 GB, free: 10.05 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.3e-05/0.4102, allocations: 9.625 kB / 0.4977 GB, free: 10.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.409e-06/0.4102, allocations: 0 / 0.4977 GB, free: 10.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.076e-05/0.4103, allocations: 317 kB / 0.498 GB, free: 9.73 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.325e-05/0.4103, allocations: 12.55 kB / 0.498 GB, free: 9.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.962e-05/0.4104, allocations: 77.38 kB / 0.4981 GB, free: 9.641 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.925e-05/0.4104, allocations: 34.89 kB / 0.4981 GB, free: 9.633 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.4104, allocations: 0 / 0.4981 GB, free: 9.633 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001233/0.4106, allocations: 98.89 kB / 0.4982 GB, free: 9.586 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.4106, allocations: 11.75 kB / 0.4982 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.4106, allocations: 7.844 kB / 0.4982 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.4106, allocations: 5.609 kB / 0.4982 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.4107, allocations: 26.52 kB / 0.4983 GB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.4107, allocations: 3.938 kB / 0.4983 GB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.833e-05/0.4108, allocations: 9.391 kB / 0.4983 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-06/0.4108, allocations: 7.719 kB / 0.4983 GB, free: 9.566 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,integerConstant.y,sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],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 5.82e-05/0.4109, allocations: 116.6 kB / 0.4984 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001376/0.411, allocations: 102.1 kB / 0.4985 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.269e-05/0.4111, allocations: 15.81 kB / 0.4985 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.4111, allocations: 3.906 kB / 0.4985 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4111, allocations: 3.906 kB / 0.4985 GB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.4111, allocations: 1.453 kB / 0.4985 GB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.4113, allocations: 165.3 kB / 0.4987 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.4113, allocations: 0 / 0.4987 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001145/0.4114, allocations: 27.52 kB / 0.4987 GB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.4114, allocations: 7.812 kB / 0.4987 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.4114, allocations: 0 / 0.4987 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.4114, allocations: 4 kB / 0.4987 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4114, allocations: 3.719 kB / 0.4987 GB, free: 9.23 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) hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y equations: hold.y = $getPart(hold.u) sample2.y = $getPart(hold.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold.u = sum2.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.0003417/0.4118, allocations: 381 kB / 0.4991 GB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.084e-05/0.4119, allocations: 101.6 kB / 0.4992 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.38e-05/0.4119, allocations: 8.875 kB / 0.4992 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.412, allocations: 1.734 kB / 0.4992 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.771e-05/0.412, allocations: 3.844 kB / 0.4992 GB, free: 8.867 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.4121, allocations: 12.17 kB / 0.4992 GB, free: 8.863 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.773e-05/0.4121, allocations: 112.1 kB / 0.4993 GB, free: 8.785 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002721/0.4124, allocations: 11.56 kB / 0.4993 GB, free: 8.785 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 (hold.y,sample1.u,sample1.y,hold.u,sample2.y,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.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.486e-05/0.4125, allocations: 109 kB / 0.4994 GB, free: 8.688 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001303/0.4126, allocations: 63.22 kB / 0.4995 GB, free: 8.684 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.4126, allocations: 0.6875 kB / 0.4995 GB, free: 8.684 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.451e-05/0.4127, allocations: 11.81 kB / 0.4995 GB, free: 8.676 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.413, allocations: 54.73 kB / 0.4996 GB, free: 8.676 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003026/0.4133, allocations: 174.5 kB / 0.4997 GB, free: 8.562 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001976/0.4135, allocations: 0.7311 MB / 0.5004 GB, free: 7.855 MB / 330.7 MB Notification: Performance of SimCode: time 2.11e-07/0.4135, allocations: 0 / 0.5004 GB, free: 7.855 MB / 330.7 MB Notification: Performance of Templates: time 0.003197/0.4167, allocations: 0.9685 MB / 0.5014 GB, free: 7.766 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches