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.001451/0.001451, allocations: 178 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.491/1.491, allocations: 205.3 MB / 213.8 MB, free: 1.684 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007741/0.0007739, allocations: 90.3 kB / 261.8 MB, free: 1.633 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.07195/0.07195, allocations: 12.6 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.638e-05/1.64e-05, allocations: 3.984 kB / 378.9 MB, free: 6.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2326/0.2326, allocations: 50.37 MB / 429.3 MB, free: 18.35 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09918/0.3319, allocations: 77.69 MB / 0.4951 GB, free: 4.547 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.3321, allocations: 75.95 kB / 0.4952 GB, free: 4.473 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004085/0.3362, allocations: 1.601 MB / 0.4968 GB, free: 2.867 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.3363, allocations: 0 / 0.4968 GB, free: 2.867 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.3363, allocations: 4 kB / 0.4968 GB, free: 2.863 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.0003933/0.3367, allocations: 384.3 kB / 0.4971 GB, free: 2.445 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.3367, allocations: 8.031 kB / 0.4971 GB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.769e-05/0.3368, allocations: 11.81 kB / 0.4971 GB, free: 2.426 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002231/0.337, allocations: 201.3 kB / 0.4973 GB, free: 2.191 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.337, allocations: 7.953 kB / 0.4973 GB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.847e-05/0.337, allocations: 7.938 kB / 0.4973 GB, free: 2.176 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000127/0.3372, allocations: 47.97 kB / 0.4974 GB, free: 2.129 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003012/0.3375, allocations: 189.8 kB / 0.4976 GB, free: 1.922 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.3375, allocations: 3.938 kB / 0.4976 GB, free: 1.918 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.26e-05/0.3375, allocations: 4 kB / 0.4976 GB, free: 1.914 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.3375, allocations: 0 / 0.4976 GB, free: 1.914 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00042/0.338, allocations: 370.2 kB / 0.4979 GB, free: 1.508 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001459/0.3381, allocations: 111.8 kB / 0.498 GB, free: 1.371 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.032e-05/0.3382, allocations: 70.75 kB / 0.4981 GB, free: 1.293 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.331e-05/0.3383, allocations: 0 / 0.4981 GB, free: 1.293 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.521e-05/0.3383, allocations: 38.56 kB / 0.4981 GB, free: 1.246 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 9.42e-07/0.3383, allocations: 0 / 0.4981 GB, free: 1.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002587/0.3386, allocations: 105.4 kB / 0.4982 GB, free: 1.137 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.759e-05/0.3386, allocations: 114.8 kB / 0.4984 GB, free: 1 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00012/0.3388, allocations: 145.3 kB / 0.4985 GB, free: 0.8477 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.3388, allocations: 25.7 kB / 0.4985 GB, free: 0.8164 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.748e-05/0.3389, allocations: 92.42 kB / 0.4986 GB, free: 0.7188 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.3389, allocations: 7.891 kB / 0.4986 GB, free: 0.7109 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-06/0.3389, allocations: 4 kB / 0.4986 GB, free: 0.707 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.339, allocations: 318.8 kB / 0.4989 GB, free: 396 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.318e-05/0.339, allocations: 12 kB / 0.4989 GB, free: 384 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.949e-05/0.3391, allocations: 85.38 kB / 0.499 GB, free: 264 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.35e-05/0.3392, allocations: 27.92 kB / 0.499 GB, free: 236 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.3392, allocations: 3.938 kB / 0.499 GB, free: 232 kB / 346.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000135/0.3393, allocations: 101.7 kB / 0.4991 GB, free: 124 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/0.3393, allocations: 8.031 kB / 0.4992 GB, free: 116 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.3393, allocations: 4 kB / 0.4992 GB, free: 112 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.3394, allocations: 4 kB / 0.4992 GB, free: 108 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.3395, allocations: 27.98 kB / 0.4992 GB, free: 80 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.3395, allocations: 7.938 kB / 0.4992 GB, free: 72 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.471e-05/0.3396, allocations: 4.094 kB / 0.4992 GB, free: 68 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.3396, allocations: 7.938 kB / 0.4992 GB, free: 60 kB / 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,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 9.793e-05/0.3397, allocations: 120.9 kB / 0.4993 GB, free: 15.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001567/0.3399, allocations: 97.42 kB / 0.4994 GB, free: 15.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.214e-05/0.3399, allocations: 12.62 kB / 0.4994 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3399, allocations: 4 kB / 0.4994 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.3399, allocations: 0 / 0.4994 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3399, allocations: 0 / 0.4994 GB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002124/0.3402, allocations: 170.1 kB / 0.4996 GB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.3402, allocations: 0 / 0.4996 GB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000112/0.3403, allocations: 31.88 kB / 0.4996 GB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.3403, allocations: 0 / 0.4996 GB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.3403, allocations: 8 kB / 0.4996 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3403, allocations: 0 / 0.4996 GB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.3403, allocations: 0 / 0.4996 GB, free: 15.57 MB / 362.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) 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/jenkins/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/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.0003488/0.3407, allocations: 384.4 kB / 0.5 GB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.521e-05/0.3407, allocations: 104.9 kB / 0.5001 GB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.3408, allocations: 3.984 kB / 0.5001 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001032/0.3409, allocations: 4 kB / 0.5001 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.387e-05/0.3409, allocations: 11.92 kB / 0.5001 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.3409, allocations: 8 kB / 0.5001 GB, free: 15.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.411e-05/0.341, allocations: 119.1 kB / 0.5002 GB, free: 14.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.341, allocations: 0 / 0.5002 GB, free: 14.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002785/0.3413, allocations: 8 kB / 0.5002 GB, free: 14.89 MB / 362.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.0001025/0.3414, allocations: 99.19 kB / 0.5003 GB, free: 14.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.3416, allocations: 68.3 kB / 0.5004 GB, free: 14.72 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.3416, allocations: 4.25 kB / 0.5004 GB, free: 14.72 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.389e-05/0.3416, allocations: 4 kB / 0.5004 GB, free: 14.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.3419, allocations: 63.64 kB / 0.5005 GB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003189/0.3422, allocations: 167 kB / 0.5006 GB, free: 14.46 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003339/0.3426, allocations: 0.7234 MB / 0.5013 GB, free: 13.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.325e-05/0.3426, allocations: 12.67 kB / 0.5014 GB, free: 13.7 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.953e-05/0.3427, allocations: 11.44 kB / 0.5014 GB, free: 13.69 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3427, allocations: 0 / 0.5014 GB, free: 13.69 MB / 362.7 MB Notification: Performance of Templates: time 0.0026/0.3453, allocations: 0.7848 MB / 0.5021 GB, free: 12.91 MB / 362.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/jenkins/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