Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 87.58 kB / 21.19 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 165 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9378/0.9378, allocations: 177.1 MB / 205 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 273 MB, free: 1.574 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.455e-05/2.625e-05, allocations: 2.312 kB / 273 MB, free: 1.57 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.003804/0.00383, allocations: 1.684 MB / 274.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005844/0.004415, allocations: 191.2 kB / 274.8 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.004517, allocations: 4 kB / 274.8 MB, free: 15.69 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001168/0.004634, allocations: 7.875 kB / 274.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001503/0.004784, allocations: 19.8 kB / 274.9 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002837/0.005068, allocations: 51.81 kB / 274.9 MB, free: 15.61 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001515/0.005219, allocations: 67.77 kB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001396/0.005359, allocations: 23.92 kB / 275 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.388e-05/0.005433, allocations: 39.89 kB / 275 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.005536, allocations: 27.91 kB / 275.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.157e-05/0.005567, allocations: 8 kB / 275.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.515e-05/0.005582, allocations: 8 kB / 275.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.861e-05/0.005641, allocations: 27.91 kB / 275.1 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.535e-05/0.005686, allocations: 19.92 kB / 275.1 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001552/0.005842, allocations: 67.73 kB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.005845, allocations: 0 / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.005848, allocations: 4 kB / 275.2 MB, free: 15.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.005854, allocations: 0 / 275.2 MB, free: 15.32 MB / 266.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.0005613/0.006415, allocations: 436 kB / 275.6 MB, free: 14.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.006458, allocations: 8.031 kB / 275.6 MB, free: 14.85 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.221e-05/0.00652, allocations: 24.84 kB / 275.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002296/0.00675, allocations: 153.2 kB / 275.8 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.529e-05/0.006765, allocations: 8.375 kB / 275.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.006779, allocations: 4.375 kB / 275.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004264/0.007206, allocations: 185.1 kB / 276 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.007214, allocations: 4.188 kB / 276 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.007226, allocations: 4.375 kB / 276 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.007235, allocations: 384 / 276 MB, free: 14.42 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.438e-05/0.007299, allocations: 23.92 kB / 276 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004664/0.007766, allocations: 426.3 kB / 276.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001727/0.007938, allocations: 121.1 kB / 276.6 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.739e-05/0.008026, allocations: 55.17 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.046e-05/0.008046, allocations: 192 / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.008076, allocations: 45.33 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=12): time 1.313e-06/0.008077, allocations: 3.938 kB / 276.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002952/0.008373, allocations: 113.7 kB / 276.8 MB, free: 13.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.588e-05/0.008438, allocations: 114.8 kB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001498/0.008588, allocations: 212.3 kB / 277.1 MB, free: 13.18 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.008604, allocations: 29.7 kB / 277.1 MB, free: 13.14 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.198e-05/0.008676, allocations: 143.1 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.202e-05/0.008688, allocations: 3.953 kB / 277.3 MB, free: 12.99 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.874e-05/0.008737, allocations: 31.36 kB / 277.3 MB, free: 12.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.008899, allocations: 492.1 kB / 277.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.652e-05/0.008915, allocations: 8 kB / 277.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.148e-05/0.008937, allocations: 15.38 kB / 277.8 MB, free: 12.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.076e-05/0.008978, allocations: 35.36 kB / 277.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.00898, allocations: 4 kB / 277.8 MB, free: 12.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.047e-05/0.00906, allocations: 45.59 kB / 277.9 MB, free: 12.33 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.009077, allocations: 14.28 kB / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.009081, allocations: 0 / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.009094, allocations: 0 / 277.9 MB, free: 12.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.269e-05/0.009167, allocations: 7.984 kB / 277.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.009172, allocations: 0 / 277.9 MB, free: 12.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.489e-05/0.009197, allocations: 4 kB / 277.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.009204, allocations: 8.047 kB / 277.9 MB, free: 12.3 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sample1.u,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 8.237e-05/0.009287, allocations: 156.6 kB / 278.1 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001782/0.009465, allocations: 85.91 kB / 278.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.817e-05/0.009503, allocations: 16.72 kB / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.009506, allocations: 7.984 kB / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.00951, allocations: 0 / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.009513, allocations: 0 / 278.2 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001548/0.009668, allocations: 144.5 kB / 278.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.00967, allocations: 0 / 278.3 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.7e-05/0.009747, allocations: 27.92 kB / 278.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.009749, allocations: 4 kB / 278.4 MB, free: 11.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.009756, allocations: 7.938 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.009759, allocations: 3.938 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.00976, allocations: 0 / 278.4 MB, free: 11.8 MB / 266.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:337:7-337: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 hold1.u hold1.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(hold1.y) hold1.y = $getPart(hold1.u) hold1.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:347:7-347:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: sum1.y sum2.u[2] sum2.y hold1.u hold1.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(hold1.y) hold1.y = $getPart(hold1.u) hold1.u = sum2.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] sum2.u[2] = sum1.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:351:7-351:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:202:5-202:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:113:7-113:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:8020:5-8020: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.0002756/0.01004, allocations: 447.5 kB / 278.8 MB, free: 11.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.715e-05/0.01008, allocations: 23.95 kB / 278.8 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.266e-05/0.0101, allocations: 3.984 kB / 278.8 MB, free: 11.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001199/0.01022, allocations: 11.94 kB / 278.8 MB, free: 11.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.685e-05/0.01024, allocations: 3.938 kB / 278.8 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.01025, allocations: 8 kB / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.331e-05/0.01031, allocations: 150.2 kB / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01031, allocations: 0 / 279 MB, free: 11.14 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001715/0.01048, allocations: 12 kB / 279 MB, free: 11.13 MB / 266.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,hold1.y,sample1.y,hold1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.115e-05/0.01056, allocations: 99.25 kB / 279.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.352e-05/0.01066, allocations: 43.64 kB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-06/0.01066, allocations: 0 / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.354e-05/0.01067, allocations: 11.69 kB / 279.2 MB, free: 10.96 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003078/0.01098, allocations: 57.95 kB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003269/0.01131, allocations: 242.7 kB / 279.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.995e-05/0.01136, allocations: 71.33 kB / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.581e-05/0.01137, allocations: 0 / 279.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.719e-05/0.0114, allocations: 12.5 kB / 279.5 MB, free: 10.54 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.0114, allocations: 4.25 kB / 279.5 MB, free: 10.53 MB / 266.7 MB Notification: Performance of Templates: time 0.002336/0.01374, allocations: 0.957 MB / 280.5 MB, free: 9.59 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.708866272121668]