Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|sample2.y|hold1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008418/0.0008415, allocations: 92.31 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 202.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.7 MB / 247.5 MB, free: 11.05 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002674/0.0002675, allocations: 4 kB / 308.4 MB, free: 0.7891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1156, allocations: 51.53 MB / 359.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.002131/0.1178, allocations: 1.313 MB / 361.2 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005194/0.1183, allocations: 179.5 kB / 361.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.1185, allocations: 3.938 kB / 361.4 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.1186, allocations: 7.938 kB / 361.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001489/0.1187, allocations: 11.92 kB / 361.4 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002814/0.119, allocations: 51.88 kB / 361.5 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00013/0.1192, allocations: 59.84 kB / 361.5 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.1193, allocations: 43.95 kB / 361.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.669e-05/0.1194, allocations: 15.88 kB / 361.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.1195, allocations: 35.84 kB / 361.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.777e-05/0.1195, allocations: 0 / 361.6 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.41e-05/0.1195, allocations: 7.938 kB / 361.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.467e-05/0.1196, allocations: 19.92 kB / 361.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.74e-05/0.1197, allocations: 65.38 kB / 361.7 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000104/0.1198, allocations: 51.89 kB / 361.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1198, allocations: 0 / 361.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1198, allocations: 0 / 361.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.1198, allocations: 0 / 361.8 MB, free: 11.39 MB / 302.1 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.0006056/0.1204, allocations: 401.5 kB / 362.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.1205, allocations: 15.97 kB / 362.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.503e-05/0.1205, allocations: 12.83 kB / 362.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000267/0.1208, allocations: 207.5 kB / 362.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.1208, allocations: 16.22 kB / 362.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.1209, allocations: 4.375 kB / 362.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004738/0.1213, allocations: 213.3 kB / 362.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.1214, allocations: 192 / 362.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.1214, allocations: 7.938 kB / 362.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.1214, allocations: 4 kB / 362.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001449/0.1216, allocations: 59.89 kB / 362.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005118/0.1221, allocations: 381.8 kB / 363.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002082/0.1223, allocations: 135.6 kB / 363.2 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.1224, allocations: 86.72 kB / 363.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.57e-05/0.1225, allocations: 0 / 363.3 MB, free: 9.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.483e-05/0.1225, allocations: 34.56 kB / 363.3 MB, free: 9.637 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.031e-06/0.1225, allocations: 4 kB / 363.3 MB, free: 9.633 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004359/0.123, allocations: 169.4 kB / 363.5 MB, free: 9.461 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.764e-05/0.123, allocations: 114.8 kB / 363.6 MB, free: 9.324 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000154/0.1232, allocations: 154.2 kB / 363.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.1232, allocations: 29.95 kB / 363.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.663e-05/0.1233, allocations: 100.4 kB / 363.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.1233, allocations: 8 kB / 363.9 MB, free: 9.016 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.999e-05/0.1234, allocations: 22.08 kB / 363.9 MB, free: 8.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.1235, allocations: 322.8 kB / 364.2 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.284e-05/0.1236, allocations: 23.92 kB / 364.2 MB, free: 8.641 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.705e-05/0.1237, allocations: 89.38 kB / 364.3 MB, free: 8.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001678/0.1239, allocations: 125.2 kB / 364.5 MB, free: 8.363 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.247e-06/0.1239, allocations: 3.938 kB / 364.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002273/0.1241, allocations: 133.2 kB / 364.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1241, allocations: 8.344 kB / 364.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.1242, allocations: 8 kB / 364.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.1242, allocations: 0 / 364.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001252/0.1243, allocations: 27.92 kB / 364.6 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.1243, allocations: 4 kB / 364.6 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.355e-05/0.1244, allocations: 12 kB / 364.6 MB, free: 8.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.167e-05/0.1244, allocations: 4 kB / 364.6 MB, free: 8.16 MB / 302.1 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,hold1.y,hold1.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001309/0.1246, allocations: 145.6 kB / 364.8 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001819/0.1247, allocations: 109.5 kB / 364.9 MB, free: 7.895 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.888e-05/0.1248, allocations: 20.7 kB / 364.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1248, allocations: 3.938 kB / 364.9 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.1248, allocations: 0 / 364.9 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.1248, allocations: 4 kB / 364.9 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002608/0.1251, allocations: 193.5 kB / 365.1 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.1251, allocations: 4 kB / 365.1 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001233/0.1253, allocations: 31.92 kB / 365.1 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.1253, allocations: 0 / 365.1 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.1253, allocations: 4 kB / 365.2 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.1253, allocations: 4 kB / 365.2 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1253, allocations: 0 / 365.2 MB, free: 7.582 MB / 302.1 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 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/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 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/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 symbolicJacobian (simulation): time 0.000497/0.1258, allocations: 392.3 kB / 365.5 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.794e-05/0.1259, allocations: 104.9 kB / 365.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.976e-05/0.1259, allocations: 0 / 365.6 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001143/0.126, allocations: 8 kB / 365.7 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.679e-05/0.1261, allocations: 3.984 kB / 365.7 MB, free: 7.043 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.061e-05/0.1261, allocations: 4 kB / 365.7 MB, free: 7.039 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.062e-05/0.1262, allocations: 134.3 kB / 365.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1262, allocations: 0 / 365.8 MB, free: 6.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000292/0.1265, allocations: 8 kB / 365.8 MB, free: 6.902 MB / 302.1 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 0.0001271/0.1266, allocations: 107.2 kB / 365.9 MB, free: 6.785 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002152/0.1269, allocations: 92.23 kB / 366 MB, free: 6.695 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.1269, allocations: 0 / 366 MB, free: 6.695 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.638e-05/0.1269, allocations: 19.92 kB / 366 MB, free: 6.676 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/0.1274, allocations: 67.88 kB / 366.1 MB, free: 6.609 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005247/0.1279, allocations: 297.2 kB / 366.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003178/0.1283, allocations: 0.7043 MB / 367.1 MB, free: 5.555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.71e-05/0.1283, allocations: 15.44 kB / 367.1 MB, free: 5.543 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1283, allocations: 4 kB / 367.1 MB, free: 5.539 MB / 302.1 MB Notification: Performance of Templates: time 0.003117/0.1315, allocations: 1.149 MB / 368.2 MB, free: 4.391 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches