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.000799/0.000799, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003257/0.003257, allocations: 162.4 kB / 24.7 MB, free: 8.91 MB / 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.8546/0.8546, allocations: 177.1 MB / 205 MB, free: 5.715 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.693e-06/1.693e-06, allocations: 0 / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.655e-05/2.824e-05, allocations: 2.281 kB / 325.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002161/0.002189, allocations: 1.633 MB / 327.5 MB, free: 13.82 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003611/0.00255, allocations: 179.3 kB / 327.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.889e-05/0.002629, allocations: 4 kB / 327.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001088/0.002738, allocations: 11.86 kB / 327.6 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001328/0.002871, allocations: 27.73 kB / 327.7 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001925/0.003063, allocations: 43.89 kB / 327.7 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001113/0.003174, allocations: 67.77 kB / 327.8 MB, free: 13.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.972e-05/0.003274, allocations: 23.92 kB / 327.8 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.656e-05/0.003321, allocations: 43.89 kB / 327.9 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.352e-05/0.003394, allocations: 23.91 kB / 327.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.24e-05/0.003427, allocations: 8 kB / 327.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.186e-05/0.003439, allocations: 4 kB / 327.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.236e-05/0.003491, allocations: 31.89 kB / 327.9 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.448e-05/0.003525, allocations: 15.94 kB / 327.9 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001229/0.003648, allocations: 99.61 kB / 328 MB, free: 13.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.00365, allocations: 4 kB / 328 MB, free: 13.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.001e-06/0.003651, allocations: 0 / 328 MB, free: 13.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.003655, allocations: 0 / 328 MB, free: 13.24 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.0003818/0.004037, allocations: 333.8 kB / 328.4 MB, free: 12.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.004073, allocations: 8.031 kB / 328.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.116e-05/0.004104, allocations: 8.891 kB / 328.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.004263, allocations: 159.9 kB / 328.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/0.004272, allocations: 384 / 328.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.24e-05/0.004284, allocations: 8.375 kB / 328.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003111/0.004595, allocations: 221.5 kB / 328.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.004603, allocations: 192 / 328.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.136e-05/0.004615, allocations: 8.375 kB / 328.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.00462, allocations: 384 / 328.8 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.777e-05/0.004697, allocations: 55.84 kB / 328.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002907/0.004988, allocations: 321.5 kB / 329.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001205/0.005109, allocations: 127.6 kB / 329.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.996e-05/0.005179, allocations: 74.8 kB / 329.3 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.914e-05/0.005198, allocations: 0 / 329.3 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.699e-05/0.005215, allocations: 34.56 kB / 329.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 1.112e-06/0.005216, allocations: 0 / 329.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002549/0.005471, allocations: 173.3 kB / 329.5 MB, free: 11.58 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/0.005523, allocations: 111.1 kB / 329.6 MB, free: 11.45 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.852e-05/0.005611, allocations: 167.1 kB / 329.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.889e-06/0.005621, allocations: 29.7 kB / 329.8 MB, free: 11.24 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.206e-05/0.005663, allocations: 96.42 kB / 329.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.057e-05/0.005674, allocations: 7.953 kB / 329.9 MB, free: 11.13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.673e-05/0.0057, allocations: 21.7 kB / 330 MB, free: 11.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.189e-05/0.005762, allocations: 318.8 kB / 330.3 MB, free: 10.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.106e-05/0.005783, allocations: 11.98 kB / 330.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.895e-05/0.005802, allocations: 17.66 kB / 330.3 MB, free: 10.75 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.927e-05/0.005842, allocations: 33.77 kB / 330.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.005844, allocations: 0 / 330.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.176e-05/0.005906, allocations: 61.56 kB / 330.4 MB, free: 10.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.005918, allocations: 11.94 kB / 330.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.005923, allocations: 0 / 330.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.005934, allocations: 0 / 330.4 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.459e-05/0.005979, allocations: 4 kB / 330.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.005983, allocations: 0 / 330.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.498e-05/0.005998, allocations: 8.438 kB / 330.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.24e-06/0.006003, allocations: 0 / 330.4 MB, free: 10.62 MB / 298.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 6.168e-05/0.006065, allocations: 125.8 kB / 330.5 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.078e-05/0.006156, allocations: 105.5 kB / 330.6 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.945e-05/0.006185, allocations: 28.7 kB / 330.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.006187, allocations: 0 / 330.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.006192, allocations: 4 kB / 330.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.006195, allocations: 0 / 330.7 MB, free: 10.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.006324, allocations: 137.2 kB / 330.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.006325, allocations: 0 / 330.8 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.792e-05/0.006383, allocations: 23.98 kB / 330.8 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.006385, allocations: 4 kB / 330.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.402e-06/0.006392, allocations: 3.938 kB / 330.8 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.006394, allocations: 7.875 kB / 330.8 MB, free: 10.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.006395, allocations: 4 kB / 330.9 MB, free: 10.14 MB / 298.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:7979:5-7979: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.0002511/0.006646, allocations: 383.5 kB / 331.2 MB, free: 9.746 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.343e-05/0.00668, allocations: 19.94 kB / 331.2 MB, free: 9.727 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.087e-05/0.00669, allocations: 4 kB / 331.2 MB, free: 9.723 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.795e-05/0.006748, allocations: 15.92 kB / 331.3 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.815e-05/0.006776, allocations: 7.938 kB / 331.3 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.00678, allocations: 0 / 331.3 MB, free: 9.699 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.455e-05/0.006834, allocations: 122.3 kB / 331.4 MB, free: 9.582 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006834, allocations: 0 / 331.4 MB, free: 9.582 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001652/0.006999, allocations: 8 kB / 331.4 MB, free: 9.574 MB / 298.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 6.983e-05/0.007069, allocations: 106.1 kB / 331.5 MB, free: 9.461 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001046/0.007174, allocations: 59.83 kB / 331.6 MB, free: 9.402 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.007175, allocations: 0 / 331.6 MB, free: 9.402 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.837e-05/0.007194, allocations: 12 kB / 331.6 MB, free: 9.391 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.007512, allocations: 64.3 kB / 331.6 MB, free: 9.328 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003121/0.007824, allocations: 269.6 kB / 331.9 MB, free: 9.027 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.256e-05/0.007897, allocations: 112.4 kB / 332 MB, free: 8.898 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.54e-05/0.007922, allocations: 12.5 kB / 332 MB, free: 8.887 MB / 298.7 MB Notification: Performance of SimCode: time 5.21e-07/0.007923, allocations: 0 / 332 MB, free: 8.887 MB / 298.7 MB Notification: Performance of Templates: time 0.001613/0.009536, allocations: 1.09 MB / 333.1 MB, free: 7.793 MB / 298.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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.23563401773572]