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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009411/0.0009411, allocations: 176.5 kB / 16.77 MB, free: 5.047 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.24/1.24, allocations: 205 MB / 222.6 MB, free: 9.156 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.0007665/0.0007665, allocations: 88.56 kB / 270.5 MB, free: 8.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.07224/0.07224, allocations: 12.58 MB / 331 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003578/0.0003578, allocations: 8 kB / 391.7 MB, free: 66.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06747/0.06785, allocations: 49.99 MB / 441.7 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2): time 0.001376/0.06926, allocations: 1.328 MB / 443 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003584/0.06964, allocations: 171.4 kB / 443.2 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.785e-05/0.06973, allocations: 0 / 443.2 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.499e-05/0.06983, allocations: 7.938 kB / 443.2 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.06994, allocations: 11.92 kB / 443.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001917/0.07014, allocations: 47.89 kB / 443.3 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.043e-05/0.07023, allocations: 59.78 kB / 443.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.07033, allocations: 43.97 kB / 443.4 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.632e-05/0.07037, allocations: 15.88 kB / 443.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.491e-05/0.07044, allocations: 31.84 kB / 443.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.724e-05/0.07046, allocations: 4 kB / 443.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.211e-05/0.07048, allocations: 4 kB / 443.4 MB, free: 14.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.78e-05/0.07052, allocations: 19.92 kB / 443.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.269e-05/0.07056, allocations: 35.69 kB / 443.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.97e-05/0.07065, allocations: 87.61 kB / 443.6 MB, free: 14.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.07066, allocations: 0 / 443.6 MB, free: 14.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.07066, allocations: 0 / 443.6 MB, free: 14.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.986e-06/0.07067, allocations: 0 / 443.6 MB, free: 14.53 MB / 298.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.0003888/0.07106, allocations: 391.3 kB / 443.9 MB, free: 14.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.07111, allocations: 8.031 kB / 443.9 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.328e-05/0.07115, allocations: 16.75 kB / 444 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001416/0.07129, allocations: 204 kB / 444.2 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.989e-06/0.07131, allocations: 4.312 kB / 444.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.212e-05/0.07133, allocations: 12.38 kB / 444.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/0.07167, allocations: 216.2 kB / 444.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.07169, allocations: 192 / 444.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.07171, allocations: 3.938 kB / 444.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.07172, allocations: 0 / 444.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.07184, allocations: 59.91 kB / 444.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003042/0.07215, allocations: 389.7 kB / 444.8 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.07231, allocations: 139.8 kB / 445 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.497e-05/0.07241, allocations: 78.53 kB / 445 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.356e-05/0.07244, allocations: 4 kB / 445.1 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.245e-05/0.07246, allocations: 38.56 kB / 445.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.462e-06/0.07247, allocations: 3.938 kB / 445.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003144/0.07279, allocations: 165.5 kB / 445.3 MB, free: 12.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.899e-05/0.07282, allocations: 110.8 kB / 445.4 MB, free: 12.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.312e-05/0.07291, allocations: 165.9 kB / 445.5 MB, free: 12.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.376e-06/0.07292, allocations: 29.7 kB / 445.6 MB, free: 12.28 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.158e-05/0.07296, allocations: 96.64 kB / 445.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.151e-05/0.07298, allocations: 15.91 kB / 445.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.343e-05/0.07301, allocations: 21.7 kB / 445.7 MB, free: 12.13 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.715e-05/0.07305, allocations: 322.8 kB / 446 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.797e-05/0.0731, allocations: 19.98 kB / 446 MB, free: 11.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.841e-05/0.07317, allocations: 93.38 kB / 446.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.07328, allocations: 113.2 kB / 446.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.0733, allocations: 8 kB / 446.2 MB, free: 11.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001727/0.07347, allocations: 129.3 kB / 446.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.07349, allocations: 7.984 kB / 446.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.0735, allocations: 4.344 kB / 446.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.07352, allocations: 8 kB / 446.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.339e-05/0.07362, allocations: 27.94 kB / 446.4 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.07363, allocations: 3.984 kB / 446.4 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.5e-05/0.07369, allocations: 12 kB / 446.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-06/0.07371, allocations: 4 kB / 446.4 MB, free: 11.31 MB / 298.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 (integerConstant.y,sum2.y,sum2.u[2],sum2.u[1],sum1.y,sum1.u[2],sum1.u[1],sample2.y,sample1.y,sample1.u,hold.u,hold.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.131e-05/0.07379, allocations: 142.5 kB / 446.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.591e-05/0.07384, allocations: 15.81 kB / 446.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.356e-05/0.07388, allocations: 20.72 kB / 446.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.07388, allocations: 0 / 446.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.07389, allocations: 4.359 kB / 446.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.07394, allocations: 101 kB / 446.7 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.07396, allocations: 8 kB / 446.7 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.07407, allocations: 4 kB / 446.7 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.597e-05/0.07411, allocations: 11.86 kB / 446.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002266/0.07434, allocations: 367.4 kB / 447.1 MB, free: 10.61 MB / 298.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.) sum2.y hold.u hold.y sample2.y sum1.u[2] sum1.y sum2.u[2] sum2.y := sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] := sum1.y 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 [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:342:7-342:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: sum2.y hold.u hold.y sample2.y sum1.u[2] sum1.y sum2.u[2] equations: sum2.y := sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] := sum1.y 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 [/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:7947:5-7947: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 detectDAEmodeSparsePattern (simulation): time 0.0002903/0.07464, allocations: 0.5098 MB / 447.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.949e-05/0.07473, allocations: 51.91 kB / 447.6 MB, free: 10.04 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.029e-05/0.07479, allocations: 115.2 kB / 447.8 MB, free: 9.922 MB / 298.7 MB Notification: Performance of Backend: time 2.71e-07/0.07479, allocations: 0 / 447.8 MB, free: 9.922 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004488/0.07525, allocations: 128.1 kB / 447.9 MB, free: 9.789 MB / 298.7 MB Notification: Performance of SimCode: time 0.0004041/0.07566, allocations: 0.689 MB / 448.6 MB, free: 9.055 MB / 298.7 MB Notification: Performance of Templates: time 0.002388/0.07806, allocations: 0.8514 MB / 449.4 MB, free: 8.203 MB / 298.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)