Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample1.y|sample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00155/0.00155, allocations: 182.1 kB / 8.049 MB, free: 1.02 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.229/2.229, allocations: 205.3 MB / 213.8 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001594/0.001594, allocations: 97.77 kB / 261.8 MB, free: 13.43 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1238/0.1238, allocations: 12.59 MB / 322.3 MB, free: 0.7812 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.046e-05/2.062e-05, allocations: 0 / 378.9 MB, free: 75.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09895/0.099, allocations: 50.37 MB / 429.3 MB, free: 24.92 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4537/0.5528, allocations: 77.69 MB / 0.4951 GB, free: 11.99 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.5531, allocations: 78.47 kB / 0.4952 GB, free: 11.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006138/0.5593, allocations: 1.604 MB / 0.4968 GB, free: 11.58 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5593, allocations: 0 / 0.4968 GB, free: 11.58 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.5594, allocations: 0 / 0.4968 GB, free: 11.58 MB / 330.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.0004624/0.5598, allocations: 380.9 kB / 0.4971 GB, free: 11.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.5599, allocations: 11.69 kB / 0.4971 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.604e-05/0.56, allocations: 15.66 kB / 0.4971 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.5603, allocations: 205.7 kB / 0.4973 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.496e-05/0.5603, allocations: 3.953 kB / 0.4973 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.785e-05/0.5603, allocations: 11.78 kB / 0.4974 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001802/0.5605, allocations: 45.66 kB / 0.4974 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004097/0.5609, allocations: 178.7 kB / 0.4976 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.279e-05/0.561, allocations: 0 / 0.4976 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.69e-05/0.561, allocations: 2.672 kB / 0.4976 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.561, allocations: 3.844 kB / 0.4976 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005227/0.5615, allocations: 365.4 kB / 0.4979 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.5617, allocations: 113.7 kB / 0.498 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000123/0.5619, allocations: 66.17 kB / 0.4981 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.596e-05/0.5619, allocations: 7.844 kB / 0.4981 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.678e-05/0.562, allocations: 34.06 kB / 0.4981 GB, free: 10.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 3.266e-06/0.562, allocations: 0 / 0.4981 GB, free: 10.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0003471/0.5623, allocations: 109.6 kB / 0.4982 GB, free: 10.39 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.635e-05/0.5624, allocations: 112.7 kB / 0.4984 GB, free: 10.26 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001503/0.5626, allocations: 138.2 kB / 0.4985 GB, free: 10.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.583e-05/0.5626, allocations: 29.77 kB / 0.4985 GB, free: 10.13 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.533e-05/0.5627, allocations: 96.36 kB / 0.4986 GB, free: 10.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.961e-05/0.5627, allocations: 9.766 kB / 0.4986 GB, free: 10.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.22e-06/0.5627, allocations: 0 / 0.4986 GB, free: 10.04 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.192e-05/0.5628, allocations: 323.7 kB / 0.4989 GB, free: 9.723 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.465e-05/0.5628, allocations: 9.125 kB / 0.4989 GB, free: 9.723 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.157e-05/0.5629, allocations: 78.94 kB / 0.499 GB, free: 9.633 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.212e-05/0.563, allocations: 35.31 kB / 0.499 GB, free: 9.625 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.563, allocations: 0 / 0.499 GB, free: 9.625 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002073/0.5632, allocations: 98.66 kB / 0.4991 GB, free: 9.578 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.5633, allocations: 7.875 kB / 0.4991 GB, free: 9.574 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.5633, allocations: 10.33 kB / 0.4992 GB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.902e-05/0.5633, allocations: 7.844 kB / 0.4992 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002046/0.5635, allocations: 21.59 kB / 0.4992 GB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.5636, allocations: 7.812 kB / 0.4992 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.791e-05/0.5637, allocations: 6.422 kB / 0.4992 GB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.457e-05/0.5637, allocations: 7.719 kB / 0.4992 GB, free: 9.562 MB / 330.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,hold.u,hold.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 0.0001106/0.5638, allocations: 116.6 kB / 0.4993 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002435/0.5641, allocations: 95.81 kB / 0.4994 GB, free: 9.41 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.084e-05/0.5641, allocations: 23.12 kB / 0.4994 GB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.5642, allocations: 3.906 kB / 0.4994 GB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.5642, allocations: 0.875 kB / 0.4994 GB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.5642, allocations: 2.484 kB / 0.4994 GB, free: 9.402 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002755/0.5645, allocations: 166.3 kB / 0.4996 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.5645, allocations: 0 / 0.4996 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002303/0.5647, allocations: 35.03 kB / 0.4996 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/0.5648, allocations: 0 / 0.4996 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.5648, allocations: 7.25 kB / 0.4996 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.5648, allocations: 0 / 0.4996 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.5648, allocations: 6.109 kB / 0.4996 GB, free: 9.23 MB / 330.7 MB [/var/lib/jenkins1/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) hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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] hold.u = sum2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:317:7-317:48:writable] Error: Internal error BackendDAETransform.analyseStrongComponentBlock failed variables: hold.u sum2.y sum2.u[2] sum1.y sum1.u[2] sample2.y hold.y equations: hold.y = $getPart(hold.u) sample2.y = $getPart(hold.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] hold.u = sum2.y [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:321:7-321:90:writable] Error: Internal error function analyseStrongComponentBlock failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:196:5-196:89:writable] Error: Internal error function analyseStrongComponentScalar failed [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/BackEnd/BackendDAETransform.mo:107:7-107:113:writable] Error: Internal error function strongComponentsScalar failed (sorting strong components) [/var/lib/jenkins1/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.0005122/0.5653, allocations: 392.6 kB / 0.5 GB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.883e-05/0.5654, allocations: 104.4 kB / 0.5001 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.5655, allocations: 0 / 0.5001 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.5657, allocations: 3.875 kB / 0.5001 GB, free: 8.863 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.5657, allocations: 9.609 kB / 0.5001 GB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.5657, allocations: 3.844 kB / 0.5001 GB, free: 8.859 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.948e-05/0.5658, allocations: 113.6 kB / 0.5002 GB, free: 8.781 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5659, allocations: 4 kB / 0.5002 GB, free: 8.777 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004057/0.5663, allocations: 11.34 kB / 0.5002 GB, free: 8.777 MB / 330.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 (hold.y,sample1.u,sample1.y,hold.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.0001357/0.5664, allocations: 102.3 kB / 0.5003 GB, free: 8.684 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.5666, allocations: 68.86 kB / 0.5004 GB, free: 8.676 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.5667, allocations: 0.6875 kB / 0.5004 GB, free: 8.676 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.434e-05/0.5667, allocations: 3.844 kB / 0.5004 GB, free: 8.676 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004808/0.5672, allocations: 67.78 kB / 0.5005 GB, free: 8.66 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004761/0.5677, allocations: 164.6 kB / 0.5006 GB, free: 8.555 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000208/0.5679, allocations: 0.7183 MB / 0.5013 GB, free: 7.852 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.92e-05/0.568, allocations: 14.92 kB / 0.5014 GB, free: 7.844 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.223e-05/0.5681, allocations: 11.28 kB / 0.5014 GB, free: 7.836 MB / 330.7 MB Notification: Performance of SimCode: time 9.21e-07/0.5681, allocations: 0 / 0.5014 GB, free: 7.836 MB / 330.7 MB Notification: Performance of Templates: time 0.004154/0.5722, allocations: 0.788 MB / 0.5021 GB, free: 7.754 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches