Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001636/0.001642, allocations: 187 kB / 15.81 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.204/2.204, allocations: 205.4 MB / 221.9 MB, free: 13.71 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.001145/0.001145, allocations: 94.86 kB / 270.3 MB, free: 13.23 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1096/0.1096, allocations: 12.59 MB / 331.1 MB, free: 10.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005615/0.0005617, allocations: 14.95 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1076, allocations: 50.38 MB / 442.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample): time 0.002321/0.1099, allocations: 1.371 MB / 443.9 MB, free: 9.414 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009673/0.111, allocations: 488.9 kB / 444.3 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.1112, allocations: 7.938 kB / 444.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 3.082e-05/0.1112, allocations: 0 / 444.3 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.959e-05/0.1113, allocations: 11.91 kB / 444.3 MB, free: 8.91 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003581/0.1117, allocations: 33.22 kB / 444.4 MB, free: 8.879 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.1118, allocations: 43.89 kB / 444.4 MB, free: 8.836 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.1119, allocations: 35.97 kB / 444.5 MB, free: 8.801 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.1121, allocations: 27.8 kB / 444.5 MB, free: 8.773 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.656e-05/0.1121, allocations: 19.86 kB / 444.5 MB, free: 8.754 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.1122, allocations: 4 kB / 444.5 MB, free: 8.75 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.7e-05/0.1122, allocations: 0 / 444.5 MB, free: 8.75 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.124e-05/0.1122, allocations: 19.91 kB / 444.5 MB, free: 8.73 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.323e-05/0.1123, allocations: 41.64 kB / 444.6 MB, free: 8.684 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.18e-05/0.1124, allocations: 32.5 kB / 444.6 MB, free: 8.652 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.1124, allocations: 0 / 444.6 MB, free: 8.652 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1124, allocations: 4 kB / 444.6 MB, free: 8.648 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1124, allocations: 0 / 444.6 MB, free: 8.648 MB / 282.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.0005284/0.113, allocations: 371.3 kB / 445 MB, free: 8.238 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.182e-05/0.113, allocations: 15.97 kB / 445 MB, free: 8.223 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.613e-05/0.1131, allocations: 34.56 kB / 445 MB, free: 8.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.501e-05/0.1131, allocations: 7.906 kB / 445 MB, free: 8.172 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.1134, allocations: 210.8 kB / 445.2 MB, free: 7.926 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.1134, allocations: 8 kB / 445.2 MB, free: 7.918 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.694e-05/0.1134, allocations: 4 kB / 445.2 MB, free: 7.914 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004373/0.1139, allocations: 161.9 kB / 445.4 MB, free: 7.734 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.1139, allocations: 0 / 445.4 MB, free: 7.734 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.1139, allocations: 7.938 kB / 445.4 MB, free: 7.727 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.1139, allocations: 4 kB / 445.4 MB, free: 7.723 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001675/0.1141, allocations: 35.92 kB / 445.4 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004014/0.1145, allocations: 286.5 kB / 445.7 MB, free: 7.352 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004214/0.115, allocations: 177 kB / 445.9 MB, free: 7.133 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.514e-05/0.115, allocations: 4.078 kB / 445.9 MB, free: 7.129 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.261e-05/0.1151, allocations: 42.62 kB / 445.9 MB, free: 7.078 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 4.538e-06/0.1151, allocations: 0 / 445.9 MB, free: 7.078 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0007927/0.1159, allocations: 121.7 kB / 446.1 MB, free: 6.953 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.251e-05/0.116, allocations: 122.8 kB / 446.2 MB, free: 6.809 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001774/0.1162, allocations: 130 kB / 446.3 MB, free: 6.672 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.101e-05/0.1163, allocations: 25.7 kB / 446.3 MB, free: 6.641 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.758e-05/0.1164, allocations: 100 kB / 446.4 MB, free: 6.539 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.012e-05/0.1164, allocations: 3.984 kB / 446.4 MB, free: 6.535 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.224e-05/0.1165, allocations: 4 kB / 446.4 MB, free: 6.531 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.553e-05/0.1166, allocations: 318.8 kB / 446.8 MB, free: 6.211 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001346/0.1167, allocations: 11.98 kB / 446.8 MB, free: 6.199 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00018/0.1169, allocations: 75.72 kB / 446.8 MB, free: 6.098 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001674/0.1171, allocations: 27.92 kB / 446.9 MB, free: 6.07 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.1171, allocations: 0 / 446.9 MB, free: 6.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004993/0.1177, allocations: 109.8 kB / 447 MB, free: 5.957 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.1177, allocations: 8 kB / 447 MB, free: 5.949 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.1178, allocations: 0 / 447 MB, free: 5.949 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.068e-05/0.1178, allocations: 4 kB / 447 MB, free: 5.945 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002321/0.118, allocations: 27.92 kB / 447 MB, free: 5.918 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.1181, allocations: 4 kB / 447 MB, free: 5.914 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001645/0.1183, allocations: 11.92 kB / 447 MB, free: 5.902 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.117e-05/0.1183, allocations: 7.953 kB / 447 MB, free: 5.895 MB / 282.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 0.0001765/0.1185, allocations: 125.8 kB / 447.2 MB, free: 5.762 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003164/0.1188, allocations: 77.53 kB / 447.2 MB, free: 5.68 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.915e-05/0.1189, allocations: 12.31 kB / 447.2 MB, free: 5.664 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.675e-06/0.119, allocations: 0 / 447.2 MB, free: 5.664 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.119, allocations: 0 / 447.2 MB, free: 5.664 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/0.119, allocations: 3.984 kB / 447.3 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00044/0.1195, allocations: 185.5 kB / 447.4 MB, free: 5.43 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.1195, allocations: 0 / 447.4 MB, free: 5.43 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002827/0.1198, allocations: 16 kB / 447.4 MB, free: 5.414 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.538e-05/0.1198, allocations: 8.172 kB / 447.5 MB, free: 5.406 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.1199, allocations: 4 kB / 447.5 MB, free: 5.402 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.318e-06/0.1199, allocations: 7.875 kB / 447.5 MB, free: 5.395 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.151e-06/0.12, allocations: 0 / 447.5 MB, free: 5.395 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006236/0.1206, allocations: 240.5 kB / 447.7 MB, free: 5.125 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.566e-05/0.1207, allocations: 88.95 kB / 447.8 MB, free: 5.02 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.39e-05/0.1208, allocations: 3.984 kB / 447.8 MB, free: 5.016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002432/0.121, allocations: 4 kB / 447.8 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.906e-05/0.1211, allocations: 7.891 kB / 447.8 MB, free: 5.004 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.527e-05/0.1211, allocations: 4 kB / 447.8 MB, free: 5 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000109/0.1213, allocations: 99.27 kB / 447.9 MB, free: 4.902 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.1213, allocations: 0 / 447.9 MB, free: 4.902 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000762/0.1221, allocations: 16 kB / 447.9 MB, free: 4.887 MB / 282.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 0.001016/0.1231, allocations: 0.8978 MB / 448.8 MB, free: 3.949 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004764/0.1236, allocations: 63.84 kB / 448.9 MB, free: 3.887 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.1237, allocations: 0 / 448.9 MB, free: 3.887 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.1238, allocations: 8.562 kB / 448.9 MB, free: 3.879 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007949/0.1246, allocations: 55.95 kB / 448.9 MB, free: 3.824 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002181/0.1268, allocations: 1.794 MB / 450.7 MB, free: 1.941 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.1272, allocations: 0.7043 MB / 451.4 MB, free: 1.211 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001208/0.1274, allocations: 8.547 kB / 451.5 MB, free: 1.203 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.1275, allocations: 19.44 kB / 451.5 MB, free: 1.184 MB / 282.7 MB Notification: Performance of SimCode: time 2.785e-06/0.1275, allocations: 0 / 451.5 MB, free: 1.184 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0267/0.1542, allocations: 1.864 MB / 453.3 MB, free: 15.33 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002654/0.1546, allocations: 197.2 kB / 453.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.635/2.789, allocations: 0 / 453.5 MB, free: 15.09 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe 2>&1)