Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.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.WorkInProgress.Tests.TestShiftSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001059/0.001059, allocations: 176.8 kB / 16.77 MB, free: 5.047 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.805/1.805, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0008613/0.0008614, allocations: 85.36 kB / 271.3 MB, free: 8.254 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.08914/0.08914, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005717/0.0005719, allocations: 16 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1042, allocations: 50.36 MB / 443 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample): time 0.001882/0.1061, allocations: 1.381 MB / 444.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007793/0.1069, allocations: 484 kB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001601/0.1071, allocations: 4 kB / 444.8 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.097e-05/0.1072, allocations: 7.922 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.037e-05/0.1073, allocations: 7.875 kB / 444.8 MB, free: 14.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003566/0.1076, allocations: 39.97 kB / 444.9 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001127/0.1077, allocations: 59.78 kB / 444.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/0.1079, allocations: 35.97 kB / 445 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.108, allocations: 27.8 kB / 445 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.092e-05/0.1081, allocations: 23.86 kB / 445 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.1081, allocations: 4 kB / 445 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.264e-05/0.1082, allocations: 0 / 445 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.06e-05/0.1082, allocations: 7.984 kB / 445 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.9e-05/0.1082, allocations: 57.5 kB / 445.1 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.362e-05/0.1083, allocations: 35.94 kB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.993e-06/0.1083, allocations: 4 kB / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1084, allocations: 0 / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.1084, allocations: 0 / 445.1 MB, free: 13.95 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0004483/0.1088, allocations: 379.3 kB / 445.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.1089, allocations: 12.03 kB / 445.5 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.165e-05/0.1089, allocations: 8.844 kB / 445.5 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001905/0.1091, allocations: 204.1 kB / 445.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.1091, allocations: 4.375 kB / 445.7 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.927e-05/0.1092, allocations: 8.375 kB / 445.7 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003662/0.1095, allocations: 170.1 kB / 445.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.1096, allocations: 0 / 445.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.335e-05/0.1096, allocations: 7.938 kB / 445.9 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.571e-06/0.1096, allocations: 4 kB / 445.9 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001097/0.1097, allocations: 39.92 kB / 445.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003252/0.11, allocations: 274.6 kB / 446.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002361/0.1103, allocations: 188.9 kB / 446.4 MB, free: 12.47 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.399e-05/0.1104, allocations: 58.61 kB / 446.4 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.381e-05/0.1104, allocations: 4 kB / 446.4 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.855e-05/0.1105, allocations: 38.5 kB / 446.5 MB, free: 12.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.293e-06/0.1105, allocations: 0 / 446.5 MB, free: 12.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003063/0.1108, allocations: 125.7 kB / 446.6 MB, free: 12.22 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.1108, allocations: 106.9 kB / 446.7 MB, free: 12.09 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.316e-05/0.1109, allocations: 134 kB / 446.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.062e-05/0.1109, allocations: 25.7 kB / 446.9 MB, free: 11.92 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.63e-05/0.111, allocations: 92.14 kB / 447 MB, free: 11.83 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.798e-05/0.111, allocations: 7.891 kB / 447 MB, free: 11.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-06/0.111, allocations: 7.938 kB / 447 MB, free: 11.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.346e-05/0.1111, allocations: 318.8 kB / 447.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.495e-05/0.1111, allocations: 19.94 kB / 447.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.576e-05/0.1112, allocations: 67.72 kB / 447.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001041/0.1113, allocations: 99.53 kB / 447.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1113, allocations: 4 kB / 447.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001505/0.1115, allocations: 109.4 kB / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.1115, allocations: 8.938 kB / 447.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.1115, allocations: 4 kB / 447.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.1115, allocations: 8.281 kB / 447.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.999e-05/0.1116, allocations: 23.92 kB / 447.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.1117, allocations: 4 kB / 447.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.491e-05/0.1117, allocations: 7.938 kB / 447.6 MB, free: 11.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.006e-05/0.1117, allocations: 4 kB / 447.6 MB, free: 11.08 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 7.491e-05/0.1118, allocations: 126.4 kB / 447.8 MB, free: 10.95 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.531e-05/0.1119, allocations: 81.52 kB / 447.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.471e-05/0.112, allocations: 8.312 kB / 447.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.112, allocations: 8 kB / 447.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.112, allocations: 0 / 447.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.112, allocations: 0 / 447.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.1121, allocations: 181.6 kB / 448 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1121, allocations: 3.938 kB / 448 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.939e-05/0.1122, allocations: 23.92 kB / 448.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1122, allocations: 0 / 448.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.1122, allocations: 4 kB / 448.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1122, allocations: 0 / 448.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1123, allocations: 0 / 448.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001755/0.1124, allocations: 217 kB / 448.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.46e-05/0.1125, allocations: 88.95 kB / 448.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.1125, allocations: 0 / 448.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.127e-05/0.1126, allocations: 8 kB / 448.4 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.41e-05/0.1126, allocations: 8.266 kB / 448.4 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.803e-06/0.1126, allocations: 4 kB / 448.4 MB, free: 10.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.003e-05/0.1127, allocations: 95.27 kB / 448.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1127, allocations: 3.938 kB / 448.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002331/0.1129, allocations: 12 kB / 448.5 MB, free: 10.12 MB / 298.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * 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 7.461e-05/0.113, allocations: 91.25 kB / 448.6 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001623/0.1132, allocations: 71.97 kB / 448.7 MB, free: 9.949 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1132, allocations: 0 / 448.7 MB, free: 9.949 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.416e-05/0.1132, allocations: 7.984 kB / 448.7 MB, free: 9.941 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000397/0.1136, allocations: 52.27 kB / 448.7 MB, free: 9.891 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003348/0.114, allocations: 249 kB / 449 MB, free: 9.605 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001216/0.1141, allocations: 0.6965 MB / 449.7 MB, free: 8.883 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.27e-05/0.1141, allocations: 11.44 kB / 449.7 MB, free: 8.875 MB / 298.7 MB Notification: Performance of SimCode: time 1.122e-06/0.1141, allocations: 0 / 449.7 MB, free: 8.875 MB / 298.7 MB Notification: Performance of Templates: time 0.002343/0.1165, allocations: 1.07 MB / 450.7 MB, free: 7.805 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe 2>&1)