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.006735/0.006741, allocations: 187.3 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.969/3.969, allocations: 205.4 MB / 222.6 MB, free: 13.84 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.001835/0.001835, allocations: 110.8 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1859/0.1859, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009554/0.0009562, allocations: 13.38 kB / 392 MB, free: 54.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2061, allocations: 50.38 MB / 442.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2): time 0.003331/0.2095, allocations: 1.296 MB / 443.6 MB, free: 10.32 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008044/0.2104, allocations: 179.4 kB / 443.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001526/0.2106, allocations: 0 / 443.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001367/0.2108, allocations: 7.922 kB / 443.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001932/0.211, allocations: 15.92 kB / 443.8 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004605/0.2115, allocations: 43.89 kB / 443.9 MB, free: 10.08 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001814/0.2117, allocations: 43.89 kB / 443.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001766/0.2119, allocations: 32.16 kB / 444 MB, free: 10 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.42e-05/0.2119, allocations: 19.88 kB / 444 MB, free: 9.98 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.2121, allocations: 27.84 kB / 444 MB, free: 9.953 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.2121, allocations: 4 kB / 444 MB, free: 9.949 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.265e-05/0.2122, allocations: 0 / 444 MB, free: 9.949 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.315e-05/0.2122, allocations: 23.91 kB / 444 MB, free: 9.926 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.507e-05/0.2123, allocations: 41.64 kB / 444.1 MB, free: 9.879 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.2125, allocations: 55.91 kB / 444.1 MB, free: 9.824 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.2125, allocations: 0 / 444.1 MB, free: 9.824 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.2125, allocations: 3.938 kB / 444.1 MB, free: 9.82 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.2126, allocations: 0 / 444.1 MB, free: 9.82 MB / 282.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.0008163/0.2134, allocations: 403.6 kB / 444.5 MB, free: 9.379 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.467e-05/0.2135, allocations: 12.03 kB / 444.5 MB, free: 9.367 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.362e-05/0.2135, allocations: 7.906 kB / 444.5 MB, free: 9.359 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.2139, allocations: 202.7 kB / 444.7 MB, free: 9.121 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.265e-05/0.2139, allocations: 19.95 kB / 444.8 MB, free: 9.102 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.442e-05/0.214, allocations: 4 kB / 444.8 MB, free: 9.098 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007512/0.2147, allocations: 197.8 kB / 445 MB, free: 8.883 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.931e-05/0.2148, allocations: 0 / 445 MB, free: 8.883 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.322e-05/0.2148, allocations: 12 kB / 445 MB, free: 8.871 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/0.2149, allocations: 0 / 445 MB, free: 8.871 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003238/0.2152, allocations: 59.89 kB / 445 MB, free: 8.812 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007677/0.216, allocations: 393.7 kB / 445.4 MB, free: 8.371 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004643/0.2165, allocations: 123.8 kB / 445.5 MB, free: 8.223 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.99e-05/0.2166, allocations: 4.125 kB / 445.5 MB, free: 8.219 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.338e-05/0.2167, allocations: 38.56 kB / 445.6 MB, free: 8.172 MB / 282.7 MB Notification: Performance of pre-optimization done (n=12): time 4.669e-06/0.2167, allocations: 0 / 445.6 MB, free: 8.172 MB / 282.7 MB Notification: Performance of matching and sorting (n=12): time 0.0008667/0.2176, allocations: 169.4 kB / 445.7 MB, free: 8 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.761e-05/0.2177, allocations: 107.1 kB / 445.8 MB, free: 7.871 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000256/0.218, allocations: 169.9 kB / 446 MB, free: 7.691 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.218, allocations: 25.7 kB / 446 MB, free: 7.66 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.296e-05/0.2181, allocations: 162.8 kB / 446.2 MB, free: 7.496 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/0.2182, allocations: 19.81 kB / 446.2 MB, free: 7.477 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.584e-05/0.2182, allocations: 4 kB / 446.2 MB, free: 7.473 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.748e-05/0.2183, allocations: 318.8 kB / 446.5 MB, free: 7.152 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001521/0.2185, allocations: 19.98 kB / 446.6 MB, free: 7.133 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001777/0.2187, allocations: 93.73 kB / 446.6 MB, free: 7.008 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001851/0.2189, allocations: 32 kB / 446.7 MB, free: 6.977 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.2189, allocations: 0 / 446.7 MB, free: 6.977 MB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000518/0.2195, allocations: 125.4 kB / 446.8 MB, free: 6.848 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.345e-05/0.2196, allocations: 11.94 kB / 446.8 MB, free: 6.836 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.2196, allocations: 0 / 446.8 MB, free: 6.836 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.311e-05/0.2196, allocations: 7.984 kB / 446.8 MB, free: 6.828 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002788/0.2199, allocations: 23.94 kB / 446.8 MB, free: 6.805 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.719e-05/0.22, allocations: 7.984 kB / 446.8 MB, free: 6.797 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.2202, allocations: 12.25 kB / 446.9 MB, free: 6.785 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.351e-05/0.2202, allocations: 12 kB / 446.9 MB, free: 6.773 MB / 282.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 () * Number of clocked 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.0002565/0.2205, allocations: 141.5 kB / 447 MB, free: 6.625 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003981/0.2209, allocations: 101.6 kB / 447.1 MB, free: 6.52 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.299e-05/0.221, allocations: 16.72 kB / 447.1 MB, free: 6.504 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.221, allocations: 4 kB / 447.1 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.2211, allocations: 0 / 447.1 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.2211, allocations: 7.922 kB / 447.1 MB, free: 6.492 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000498/0.2216, allocations: 201.5 kB / 447.3 MB, free: 6.246 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.677e-06/0.2217, allocations: 3.984 kB / 447.3 MB, free: 6.242 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003539/0.222, allocations: 23.98 kB / 447.4 MB, free: 6.219 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.174e-05/0.2221, allocations: 0 / 447.4 MB, free: 6.219 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.24e-05/0.2221, allocations: 4 kB / 447.4 MB, free: 6.215 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.586e-06/0.2221, allocations: 4 kB / 447.4 MB, free: 6.211 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.2221, allocations: 0 / 447.4 MB, free: 6.211 MB / 282.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:332:7-332:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Purely discrete algebraic loops cannot be solved by iterative processes. Try to break them open using the delay() operator.) sum1.y sum2.u[2] sum2.y hold.u hold.y sample2.y sum1.u[2] sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum1.u[2] = sample2.y sample2.y = $getPart(hold.y) hold.y = $getPart(hold.u) hold.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: sum1.y sum2.u[2] sum2.y hold.u hold.y sample2.y sum1.u[2] equations: sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum1.u[2] = sample2.y sample2.y = $getPart(hold.y) hold.y = $getPart(hold.u) hold.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7903:5-7903: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.0009227/0.2231, allocations: 415.8 kB / 447.8 MB, free: 5.777 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001494/0.2233, allocations: 101 kB / 447.9 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.051e-05/0.2233, allocations: 4 kB / 447.9 MB, free: 5.656 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.2237, allocations: 12 kB / 447.9 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.227e-05/0.2237, allocations: 0 / 447.9 MB, free: 5.645 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.578e-05/0.2238, allocations: 7.984 kB / 447.9 MB, free: 5.637 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001709/0.224, allocations: 115.2 kB / 448 MB, free: 5.523 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.224, allocations: 0 / 448 MB, free: 5.523 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007672/0.2248, allocations: 16 kB / 448 MB, free: 5.508 MB / 282.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,sum1.u[1],sum1.u[2],sum1.y,sum2.u[1],sum2.u[2],sum2.y,integerConstant.y) * Number of discrete states: 0 () * Number of clocked 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.0002173/0.2251, allocations: 111.1 kB / 448.1 MB, free: 5.387 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005706/0.2257, allocations: 88.39 kB / 448.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.2257, allocations: 0 / 448.2 MB, free: 5.301 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001095/0.2258, allocations: 12.16 kB / 448.2 MB, free: 5.289 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008403/0.2267, allocations: 71.58 kB / 448.3 MB, free: 5.223 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.2278, allocations: 300.7 kB / 448.6 MB, free: 4.895 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002741/0.2281, allocations: 0.7121 MB / 449.3 MB, free: 4.156 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.389e-05/0.2283, allocations: 15.44 kB / 449.3 MB, free: 4.141 MB / 282.7 MB Notification: Performance of SimCode: time 1.674e-06/0.2283, allocations: 0 / 449.3 MB, free: 4.141 MB / 282.7 MB Notification: Performance of Templates: time 0.005822/0.2341, allocations: 1.137 MB / 450.5 MB, free: 3.008 MB / 282.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