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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001108/0.001108, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 225.6 MB / 234.8 MB, free: 3.289 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008231/0.0008227, allocations: 98.39 kB / 286.7 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.763e-05/1.773e-05, allocations: 4 kB / 343.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09423/0.09427, allocations: 51.48 MB / 395.2 MB, free: 4.762 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3396/0.434, allocations: 77.37 MB / 472.5 MB, free: 14.13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/0.4342, allocations: 79.38 kB / 472.6 MB, free: 14.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004071/0.4383, allocations: 1.642 MB / 474.3 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.4383, allocations: 3.938 kB / 474.3 MB, free: 13.08 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.4384, allocations: 3.656 kB / 474.3 MB, free: 13.08 MB / 346.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.0003431/0.4387, allocations: 375 kB / 474.6 MB, free: 12.7 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.486e-05/0.4388, allocations: 12.03 kB / 474.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.632e-05/0.4388, allocations: 12.34 kB / 474.7 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001969/0.439, allocations: 204.5 kB / 474.9 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.439, allocations: 4 kB / 474.9 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.507e-05/0.4391, allocations: 4 kB / 474.9 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001255/0.4392, allocations: 60.72 kB / 474.9 MB, free: 12.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002918/0.4395, allocations: 178.1 kB / 475.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.4395, allocations: 0 / 475.1 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.4395, allocations: 4 kB / 475.1 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.4395, allocations: 0 / 475.1 MB, free: 12.26 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003815/0.4399, allocations: 369.6 kB / 475.5 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001304/0.4401, allocations: 107.7 kB / 475.6 MB, free: 11.79 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.936e-05/0.4402, allocations: 73.78 kB / 475.6 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.234e-05/0.4402, allocations: 1.359 kB / 475.6 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.014e-05/0.4402, allocations: 42.25 kB / 475.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.142e-06/0.4402, allocations: 0 / 475.7 MB, free: 11.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002703/0.4405, allocations: 101 kB / 475.8 MB, free: 11.6 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.626e-05/0.4406, allocations: 116.1 kB / 475.9 MB, free: 11.47 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.642e-05/0.4407, allocations: 140.2 kB / 476 MB, free: 11.35 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.4407, allocations: 25.7 kB / 476.1 MB, free: 11.32 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.339e-05/0.4407, allocations: 97.34 kB / 476.2 MB, free: 11.22 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.164e-05/0.4407, allocations: 5.203 kB / 476.2 MB, free: 11.22 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-06/0.4408, allocations: 0 / 476.2 MB, free: 11.22 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.462e-05/0.4408, allocations: 322.7 kB / 476.5 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.3e-05/0.4408, allocations: 11.75 kB / 476.5 MB, free: 10.9 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.412e-05/0.4409, allocations: 78.75 kB / 476.6 MB, free: 10.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.7e-05/0.4409, allocations: 26.67 kB / 476.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4409, allocations: 7.891 kB / 476.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000123/0.4411, allocations: 108.5 kB / 476.7 MB, free: 10.68 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.4411, allocations: 4 kB / 476.7 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.4411, allocations: 4 kB / 476.7 MB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.4411, allocations: 4.344 kB / 476.7 MB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.4412, allocations: 27.09 kB / 476.7 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.4412, allocations: 5.719 kB / 476.7 MB, free: 10.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.572e-05/0.4413, allocations: 9.594 kB / 476.8 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.4413, allocations: 4 kB / 476.8 MB, free: 10.62 MB / 346.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 (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 () * 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 6.165e-05/0.4414, allocations: 110.8 kB / 476.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.4415, allocations: 103 kB / 477 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.02e-05/0.4416, allocations: 20.97 kB / 477 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.4416, allocations: 4 kB / 477 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.4416, allocations: 0 / 477 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.4416, allocations: 1.453 kB / 477 MB, free: 10.42 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001746/0.4418, allocations: 170.5 kB / 477.2 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.4418, allocations: 0 / 477.2 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001061/0.4419, allocations: 23.75 kB / 477.2 MB, free: 10.22 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.4419, allocations: 6.516 kB / 477.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-06/0.4419, allocations: 4.812 kB / 477.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.4419, allocations: 9.344 kB / 477.2 MB, free: 10.21 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4419, allocations: 0 / 477.2 MB, free: 10.21 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:307:7-307:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed (Sorry - Support for Discrete Equation Systems is not yet implemented) hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold1.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: hold1.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold1.y equations: hold1.y = $getPart(hold1.u) sample2.y = $getPart(hold1.y) sum1.u[2] = sample2.y sum1.y = sum1.k[1] * sum1.u[1] + sum1.k[2] * sum1.u[2] sum2.u[2] = sum1.y sum2.y = sum2.k[1] * sum2.u[1] + sum2.k[2] * sum2.u[2] hold1.u = sum2.y [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:7358:5-7358: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.0003027/0.4423, allocations: 384.4 kB / 477.6 MB, free: 9.859 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.254e-05/0.4423, allocations: 109.4 kB / 477.7 MB, free: 9.746 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.701e-05/0.4423, allocations: 4 kB / 477.7 MB, free: 9.742 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001055/0.4424, allocations: 5.641 kB / 477.7 MB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.735e-05/0.4425, allocations: 1.734 kB / 477.7 MB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.202e-06/0.4425, allocations: 4 kB / 477.7 MB, free: 9.734 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.211e-05/0.4426, allocations: 114.7 kB / 477.8 MB, free: 9.637 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4426, allocations: 4 kB / 477.8 MB, free: 9.633 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002558/0.4428, allocations: 8 kB / 477.8 MB, free: 9.625 MB / 346.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 (hold1.y,sample1.u,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 () * 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.0001003/0.4429, allocations: 108.7 kB / 477.9 MB, free: 9.508 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000129/0.4431, allocations: 61.58 kB / 478 MB, free: 9.465 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4431, allocations: 1.188 kB / 478 MB, free: 9.465 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.443e-05/0.4431, allocations: 8.062 kB / 478 MB, free: 9.461 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.4434, allocations: 68.14 kB / 478.1 MB, free: 9.418 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003054/0.4437, allocations: 168.5 kB / 478.2 MB, free: 9.262 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/0.4439, allocations: 0.7091 MB / 478.9 MB, free: 8.543 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 3.493e-05/0.4439, allocations: 5.969 kB / 478.9 MB, free: 8.539 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.692e-05/0.444, allocations: 16.66 kB / 479 MB, free: 8.523 MB / 346.7 MB Notification: Performance of SimCode: time 2.51e-07/0.444, allocations: 4 kB / 479 MB, free: 8.52 MB / 346.7 MB Notification: Performance of Templates: time 0.003003/0.447, allocations: 0.7743 MB / 479.7 MB, free: 8.094 MB / 346.7 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","../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches