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/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/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_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample,fileNamePrefix="Modelica_Synchronous_cpp_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.001086/0.001086, allocations: 175 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.197/1.197, allocations: 205.4 MB / 222.9 MB, free: 9.027 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.0007148/0.0007148, allocations: 96.97 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05681/0.05681, allocations: 12.18 MB / 331.8 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003556/0.0003556, allocations: 12 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06638/0.06675, allocations: 50.29 MB / 442.5 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample): time 0.001296/0.06809, allocations: 1.373 MB / 443.9 MB, free: 15.17 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005065/0.06861, allocations: 484 kB / 444.3 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.022e-05/0.06868, allocations: 0 / 444.3 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.538e-05/0.06873, allocations: 3.938 kB / 444.3 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.149e-05/0.06878, allocations: 11.92 kB / 444.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002226/0.06901, allocations: 35.91 kB / 444.4 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.388e-05/0.06909, allocations: 59.78 kB / 444.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.72e-05/0.06919, allocations: 39.97 kB / 444.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.971e-05/0.06925, allocations: 15.88 kB / 444.5 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.702e-05/0.06931, allocations: 23.86 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.334e-05/0.06932, allocations: 4 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.958e-06/0.06934, allocations: 3.938 kB / 444.5 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.372e-05/0.06936, allocations: 15.92 kB / 444.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.271e-05/0.0694, allocations: 53.5 kB / 444.6 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.564e-05/0.06946, allocations: 35.92 kB / 444.6 MB, free: 14.39 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.06947, allocations: 4 kB / 444.6 MB, free: 14.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.06947, allocations: 4 kB / 444.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.016e-06/0.06948, allocations: 0 / 444.7 MB, free: 14.38 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.0003117/0.0698, allocations: 375.4 kB / 445 MB, free: 13.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/0.06984, allocations: 8.031 kB / 445 MB, free: 13.96 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.519e-05/0.06987, allocations: 38.73 kB / 445.1 MB, free: 13.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.222e-05/0.06989, allocations: 12.84 kB / 445.1 MB, free: 13.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001308/0.07003, allocations: 204 kB / 445.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.597e-06/0.07005, allocations: 4.375 kB / 445.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.07006, allocations: 12.38 kB / 445.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002638/0.07033, allocations: 169.8 kB / 445.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.846e-06/0.07035, allocations: 0 / 445.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.07038, allocations: 11.98 kB / 445.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.07039, allocations: 4 kB / 445.5 MB, free: 13.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.531e-05/0.07049, allocations: 31.98 kB / 445.5 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002218/0.07072, allocations: 286.5 kB / 445.8 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001781/0.07091, allocations: 180.9 kB / 446 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.713e-05/0.071, allocations: 54.62 kB / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.693e-05/0.07103, allocations: 7.984 kB / 446 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.107e-05/0.07104, allocations: 30.56 kB / 446.1 MB, free: 12.74 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.052e-06/0.07105, allocations: 0 / 446.1 MB, free: 12.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002564/0.07131, allocations: 129.4 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.07135, allocations: 110.9 kB / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.913e-05/0.07142, allocations: 131.5 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.414e-06/0.07143, allocations: 25.7 kB / 446.4 MB, free: 12.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.389e-05/0.07146, allocations: 88.14 kB / 446.5 MB, free: 12.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.234e-05/0.07148, allocations: 11.89 kB / 446.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.987e-06/0.07149, allocations: 4 kB / 446.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.622e-05/0.07153, allocations: 314.8 kB / 446.8 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.238e-05/0.07158, allocations: 23.98 kB / 446.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.167e-05/0.07164, allocations: 67.66 kB / 446.9 MB, free: 11.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.688e-05/0.07174, allocations: 103.8 kB / 447 MB, free: 11.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.07175, allocations: 0 / 447 MB, free: 11.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001412/0.07189, allocations: 113.3 kB / 447.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/0.07191, allocations: 4.938 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.07192, allocations: 4.281 kB / 447.2 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.07194, allocations: 8 kB / 447.2 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.974e-05/0.07201, allocations: 15.98 kB / 447.2 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.07203, allocations: 11.92 kB / 447.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.944e-05/0.07208, allocations: 7.938 kB / 447.2 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.895e-06/0.0721, allocations: 4.25 kB / 447.2 MB, free: 11.47 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 5.07e-05/0.07215, allocations: 130.4 kB / 447.3 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.796e-05/0.07224, allocations: 81.52 kB / 447.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.615e-05/0.07228, allocations: 12.31 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.07228, allocations: 4 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.07229, allocations: 4 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.846e-06/0.0723, allocations: 3.938 kB / 447.4 MB, free: 11.22 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.07241, allocations: 177.6 kB / 447.6 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.07242, allocations: 4 kB / 447.6 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.295e-05/0.0725, allocations: 15.98 kB / 447.6 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.07251, allocations: 4.234 kB / 447.6 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.07252, allocations: 0 / 447.6 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.07253, allocations: 0 / 447.6 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.07253, allocations: 7.938 kB / 447.6 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001553/0.07269, allocations: 213.1 kB / 447.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.909e-05/0.07272, allocations: 92.89 kB / 447.9 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.07274, allocations: 4 kB / 447.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.94e-05/0.07281, allocations: 8 kB / 448 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.63e-05/0.07285, allocations: 4 kB / 448 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.07286, allocations: 3.984 kB / 448 MB, free: 10.61 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.204e-05/0.07289, allocations: 99.34 kB / 448.1 MB, free: 10.51 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.0729, allocations: 0 / 448.1 MB, free: 10.51 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002119/0.07312, allocations: 12 kB / 448.1 MB, free: 10.5 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 0.0002864/0.07341, allocations: 0.7414 MB / 448.8 MB, free: 9.727 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001317/0.07355, allocations: 64.34 kB / 448.9 MB, free: 9.664 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.07356, allocations: 4.062 kB / 448.9 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.359e-05/0.0736, allocations: 11.98 kB / 448.9 MB, free: 9.648 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003256/0.07393, allocations: 43.95 kB / 448.9 MB, free: 9.605 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006806/0.07462, allocations: 0.6457 MB / 449.6 MB, free: 8.871 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.323e-05/0.07472, allocations: 0.7003 MB / 450.3 MB, free: 8.145 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.747e-05/0.07477, allocations: 27.42 kB / 450.3 MB, free: 8.121 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.07477, allocations: 0 / 450.3 MB, free: 8.121 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.236/2.311, allocations: 1.329 MB / 451.6 MB, free: 6.793 MB / 298.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestShiftSample.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample.pipe 2>&1)