Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002101/0.002107, allocations: 181.3 kB / 8.409 MB, free: 0.668 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.108/2.108, allocations: 205.3 MB / 214.1 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001105/0.001104, allocations: 82.7 kB / 262.1 MB, free: 1.684 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.1004/0.1004, allocations: 12.59 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.903e-05/1.917e-05, allocations: 4 kB / 378.9 MB, free: 6.891 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3041, allocations: 50.36 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.4401, allocations: 77.71 MB / 0.4951 GB, free: 4.605 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002988/0.4405, allocations: 71.95 kB / 0.4952 GB, free: 4.535 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006541/0.447, allocations: 1.597 MB / 0.4967 GB, free: 2.934 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4471, allocations: 4 kB / 0.4967 GB, free: 2.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.558e-05/0.4471, allocations: 0 / 0.4967 GB, free: 2.93 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.000534/0.4477, allocations: 382.2 kB / 0.4971 GB, free: 2.512 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/0.4477, allocations: 8.031 kB / 0.4971 GB, free: 2.504 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.129e-05/0.4478, allocations: 15.81 kB / 0.4971 GB, free: 2.488 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002852/0.4481, allocations: 201.3 kB / 0.4973 GB, free: 2.254 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.4481, allocations: 7.953 kB / 0.4973 GB, free: 2.246 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.4482, allocations: 4 kB / 0.4973 GB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001901/0.4484, allocations: 47.97 kB / 0.4974 GB, free: 2.195 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004496/0.4488, allocations: 189.7 kB / 0.4975 GB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.4488, allocations: 0 / 0.4975 GB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.395e-05/0.4489, allocations: 0 / 0.4975 GB, free: 1.988 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-06/0.4489, allocations: 4 kB / 0.4976 GB, free: 1.984 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005623/0.4495, allocations: 370.2 kB / 0.4979 GB, free: 1.578 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002322/0.4497, allocations: 111.9 kB / 0.498 GB, free: 1.441 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.4499, allocations: 70.62 kB / 0.4981 GB, free: 1.363 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.562e-05/0.4499, allocations: 7.984 kB / 0.4981 GB, free: 1.355 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.103e-05/0.45, allocations: 30.56 kB / 0.4981 GB, free: 1.316 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 2.094e-06/0.45, allocations: 4 kB / 0.4981 GB, free: 1.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003639/0.4504, allocations: 105.4 kB / 0.4982 GB, free: 1.203 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.58e-05/0.4505, allocations: 114.8 kB / 0.4983 GB, free: 1.066 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000199/0.4507, allocations: 145.3 kB / 0.4985 GB, free: 0.9141 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.4507, allocations: 25.7 kB / 0.4985 GB, free: 0.8828 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.917e-05/0.4508, allocations: 158.8 kB / 0.4986 GB, free: 0.7227 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.342e-05/0.4508, allocations: 11.89 kB / 0.4987 GB, free: 0.7109 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-06/0.4509, allocations: 0 / 0.4987 GB, free: 0.7109 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.451, allocations: 318.8 kB / 0.499 GB, free: 400 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.926e-05/0.4511, allocations: 12 kB / 0.499 GB, free: 388 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.693e-05/0.4512, allocations: 81.38 kB / 0.499 GB, free: 272 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.296e-05/0.4513, allocations: 31.92 kB / 0.4991 GB, free: 240 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.4513, allocations: 0 / 0.4991 GB, free: 240 kB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000227/0.4515, allocations: 93.77 kB / 0.4992 GB, free: 140 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.4515, allocations: 16 kB / 0.4992 GB, free: 124 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.4516, allocations: 0 / 0.4992 GB, free: 124 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.4516, allocations: 4 kB / 0.4992 GB, free: 120 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000195/0.4518, allocations: 23.98 kB / 0.4992 GB, free: 96 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.681e-05/0.4518, allocations: 8.031 kB / 0.4992 GB, free: 88 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.024e-05/0.4519, allocations: 15.84 kB / 0.4992 GB, free: 72 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.722e-05/0.452, allocations: 8 kB / 0.4992 GB, free: 64 kB / 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,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 0.0001492/0.4521, allocations: 122.5 kB / 0.4994 GB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002401/0.4524, allocations: 93.52 kB / 0.4994 GB, free: 15.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.524e-05/0.4524, allocations: 16.62 kB / 0.4995 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.4525, allocations: 0 / 0.4995 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.4525, allocations: 4 kB / 0.4995 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4525, allocations: 0 / 0.4995 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00031/0.4528, allocations: 166 kB / 0.4996 GB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.4528, allocations: 0 / 0.4996 GB, free: 15.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002044/0.453, allocations: 35.88 kB / 0.4997 GB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.575e-06/0.4531, allocations: 4 kB / 0.4997 GB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.4531, allocations: 4 kB / 0.4997 GB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.746e-06/0.4531, allocations: 0 / 0.4997 GB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.114e-06/0.4531, allocations: 4 kB / 0.4997 GB, free: 15.57 MB / 362.7 MB [/var/lib/jenkins1/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/jenkins1/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/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.0005575/0.4537, allocations: 380.5 kB / 0.5 GB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.4538, allocations: 104.8 kB / 0.5001 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.349e-05/0.4539, allocations: 0 / 0.5001 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/0.454, allocations: 7.984 kB / 0.5001 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.806e-05/0.4541, allocations: 15.92 kB / 0.5002 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-06/0.4541, allocations: 4 kB / 0.5002 GB, free: 15.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000116/0.4542, allocations: 115.1 kB / 0.5003 GB, free: 14.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.4543, allocations: 0 / 0.5003 GB, free: 14.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004337/0.4547, allocations: 12 kB / 0.5003 GB, free: 14.9 MB / 362.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 0.0001294/0.4548, allocations: 103.2 kB / 0.5004 GB, free: 14.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001996/0.4551, allocations: 60.42 kB / 0.5004 GB, free: 14.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.4551, allocations: 4.125 kB / 0.5004 GB, free: 14.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.316e-05/0.4551, allocations: 4 kB / 0.5004 GB, free: 14.72 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004766/0.4556, allocations: 67.64 kB / 0.5005 GB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004767/0.4561, allocations: 192.7 kB / 0.5007 GB, free: 14.44 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003398/0.4564, allocations: 0.7198 MB / 0.5014 GB, free: 13.69 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.333e-05/0.4565, allocations: 23.38 kB / 0.5014 GB, free: 13.67 MB / 362.7 MB Notification: Performance of SimCode: time 8.22e-07/0.4565, allocations: 0 / 0.5014 GB, free: 13.67 MB / 362.7 MB Notification: Performance of Templates: time 0.003589/0.4601, allocations: 1.113 MB / 0.5025 GB, free: 12.56 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches