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.0008956/0.0008954, allocations: 100.1 kB / 17.01 MB, free: 6.117 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00111/0.00111, allocations: 197.6 kB / 17.91 MB, free: 5.688 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.503/1.503, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002487/0.0002489, allocations: 8 kB / 307.1 MB, free: 1.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1138, allocations: 51.52 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2): time 0.001704/0.1156, allocations: 1.305 MB / 359.9 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004106/0.116, allocations: 191.5 kB / 360.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.421e-05/0.1161, allocations: 3.938 kB / 360.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 9.331e-05/0.1162, allocations: 15.8 kB / 360.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.1164, allocations: 4 kB / 360.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002568/0.1166, allocations: 47.89 kB / 360.2 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.1168, allocations: 59.78 kB / 360.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.1169, allocations: 36.14 kB / 360.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.498e-05/0.1169, allocations: 15.94 kB / 360.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.279e-05/0.117, allocations: 35.78 kB / 360.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.103e-05/0.1171, allocations: 0 / 360.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.446e-05/0.1171, allocations: 4 kB / 360.3 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.01e-05/0.1171, allocations: 27.91 kB / 360.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.614e-05/0.1172, allocations: 37.64 kB / 360.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.843e-05/0.1173, allocations: 55.89 kB / 360.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1173, allocations: 0 / 360.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1173, allocations: 0 / 360.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.867e-06/0.1173, allocations: 0 / 360.5 MB, free: 11.81 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.0005231/0.1178, allocations: 403.1 kB / 360.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1179, allocations: 8.031 kB / 360.9 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.031e-05/0.1179, allocations: 15.91 kB / 360.9 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002266/0.1182, allocations: 202.2 kB / 361.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.1182, allocations: 15.92 kB / 361.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.575e-05/0.1182, allocations: 8 kB / 361.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004083/0.1186, allocations: 209.2 kB / 361.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.1186, allocations: 0 / 361.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.1187, allocations: 4 kB / 361.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.1187, allocations: 7.984 kB / 361.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001252/0.1188, allocations: 55.91 kB / 361.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004498/0.1193, allocations: 389.7 kB / 361.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.1195, allocations: 131.7 kB / 361.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/0.1196, allocations: 78.73 kB / 362 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.472e-05/0.1196, allocations: 4 kB / 362 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.1197, allocations: 34.55 kB / 362 MB, free: 10.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.152e-06/0.1197, allocations: 0 / 362 MB, free: 10.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003717/0.12, allocations: 173.4 kB / 362.2 MB, free: 9.898 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.947e-05/0.1201, allocations: 110.8 kB / 362.3 MB, free: 9.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001258/0.1202, allocations: 158.1 kB / 362.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.913e-05/0.1203, allocations: 29.7 kB / 362.4 MB, free: 9.566 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.529e-05/0.1203, allocations: 100.3 kB / 362.5 MB, free: 9.461 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.1203, allocations: 11.89 kB / 362.6 MB, free: 9.449 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.091e-06/0.1204, allocations: 8.25 kB / 362.6 MB, free: 9.441 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.1205, allocations: 322.8 kB / 362.9 MB, free: 9.117 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.275e-05/0.1205, allocations: 27.92 kB / 362.9 MB, free: 9.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.116e-05/0.1206, allocations: 89.38 kB / 363 MB, free: 8.969 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.814e-05/0.1207, allocations: 31.98 kB / 363 MB, free: 8.938 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1207, allocations: 0 / 363 MB, free: 8.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001985/0.1209, allocations: 129.3 kB / 363.2 MB, free: 8.805 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.1209, allocations: 4.344 kB / 363.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.121, allocations: 8 kB / 363.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.121, allocations: 4 kB / 363.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001027/0.1211, allocations: 27.92 kB / 363.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.1211, allocations: 4 kB / 363.2 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.452e-05/0.1212, allocations: 8 kB / 363.2 MB, free: 8.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.1212, allocations: 4 kB / 363.2 MB, free: 8.746 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.u,hold1.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.0001079/0.1213, allocations: 137.7 kB / 363.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/0.1214, allocations: 109.5 kB / 363.5 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.554e-05/0.1215, allocations: 24.64 kB / 363.5 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1215, allocations: 0 / 363.5 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.1215, allocations: 4 kB / 363.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.1215, allocations: 480 / 363.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002319/0.1218, allocations: 197.5 kB / 363.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1218, allocations: 0 / 363.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001081/0.1219, allocations: 27.98 kB / 363.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.1219, allocations: 0 / 363.7 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.1219, allocations: 7.938 kB / 363.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.744e-06/0.1219, allocations: 4 kB / 363.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1219, allocations: 0 / 363.7 MB, free: 8.176 MB / 302.1 MB [/var/lib/jenkins/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/jenkins/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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:346:7-346:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7863:5-7863: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.0004212/0.1224, allocations: 388.3 kB / 364.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.996e-05/0.1224, allocations: 112.9 kB / 364.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.849e-05/0.1225, allocations: 0 / 364.2 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000113/0.1226, allocations: 11.98 kB / 364.2 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.012e-05/0.1226, allocations: 0 / 364.2 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.584e-06/0.1226, allocations: 4 kB / 364.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.706e-05/0.1227, allocations: 130.4 kB / 364.3 MB, free: 7.504 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1227, allocations: 0 / 364.3 MB, free: 7.504 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002754/0.123, allocations: 8 kB / 364.4 MB, free: 7.496 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 (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.0001105/0.1231, allocations: 111.1 kB / 364.5 MB, free: 7.375 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002009/0.1233, allocations: 88.2 kB / 364.5 MB, free: 7.289 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1233, allocations: 0 / 364.5 MB, free: 7.289 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.831e-05/0.1234, allocations: 15.98 kB / 364.6 MB, free: 7.273 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004346/0.1238, allocations: 59.94 kB / 364.6 MB, free: 7.215 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00043/0.1243, allocations: 259.4 kB / 364.9 MB, free: 6.934 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.1245, allocations: 0.7121 MB / 365.6 MB, free: 6.195 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.659e-05/0.1246, allocations: 12.55 kB / 365.6 MB, free: 6.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.811e-05/0.1246, allocations: 11.44 kB / 365.6 MB, free: 6.172 MB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1246, allocations: 4 kB / 365.6 MB, free: 6.168 MB / 302.1 MB Notification: Performance of Templates: time 0.002985/0.1276, allocations: 0.8167 MB / 366.4 MB, free: 5.359 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample2/Sample2.csv","/var/lib/jenkins/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