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.0012/0.001201, allocations: 175.7 kB / 15.82 MB, free: 6.305 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.7/1.7, allocations: 205.4 MB / 222 MB, free: 13.83 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.0008656/0.0008658, allocations: 98.22 kB / 270.3 MB, free: 13.36 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.0738/0.0738, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004613/0.0004616, allocations: 15.69 kB / 392.1 MB, free: 54.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1137, allocations: 50.38 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestShiftSample): time 0.002002/0.1158, allocations: 1.37 MB / 443.9 MB, free: 9.43 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008842/0.1167, allocations: 496 kB / 444.3 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.1169, allocations: 7.938 kB / 444.4 MB, free: 8.93 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.613e-05/0.1169, allocations: 7.922 kB / 444.4 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 9.087e-05/0.117, allocations: 7.875 kB / 444.4 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003784/0.1174, allocations: 43.89 kB / 444.4 MB, free: 8.871 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001291/0.1175, allocations: 59.78 kB / 444.5 MB, free: 8.812 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001299/0.1177, allocations: 27.97 kB / 444.5 MB, free: 8.785 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.1178, allocations: 27.88 kB / 444.5 MB, free: 8.758 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.1179, allocations: 27.84 kB / 444.6 MB, free: 8.73 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.141e-05/0.1179, allocations: 0 / 444.6 MB, free: 8.73 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.417e-05/0.1179, allocations: 7.938 kB / 444.6 MB, free: 8.723 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.678e-05/0.118, allocations: 11.92 kB / 444.6 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.284e-05/0.118, allocations: 33.7 kB / 444.6 MB, free: 8.672 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 9.238e-05/0.1181, allocations: 42.73 kB / 444.6 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1181, allocations: 0 / 444.6 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.1181, allocations: 3.938 kB / 444.7 MB, free: 8.629 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.371e-06/0.1181, allocations: 0 / 444.7 MB, free: 8.629 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.000471/0.1186, allocations: 371.9 kB / 445 MB, free: 8.219 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.1187, allocations: 8.031 kB / 445 MB, free: 8.211 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.115e-05/0.1187, allocations: 42.56 kB / 445.1 MB, free: 8.16 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.39e-05/0.1188, allocations: 7.906 kB / 445.1 MB, free: 8.152 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000199/0.119, allocations: 202.8 kB / 445.3 MB, free: 7.914 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.119, allocations: 4 kB / 445.3 MB, free: 7.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.327e-05/0.119, allocations: 8 kB / 445.3 MB, free: 7.902 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003569/0.1194, allocations: 169.8 kB / 445.4 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.1194, allocations: 0 / 445.4 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.043e-05/0.1194, allocations: 0 / 445.4 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.1194, allocations: 4 kB / 445.5 MB, free: 7.711 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/0.1195, allocations: 35.92 kB / 445.5 MB, free: 7.676 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003125/0.1199, allocations: 286.6 kB / 445.8 MB, free: 7.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.1201, allocations: 173 kB / 445.9 MB, free: 7.125 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.785e-05/0.1202, allocations: 58.61 kB / 446 MB, free: 7.059 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.1203, allocations: 11.92 kB / 446 MB, free: 7.047 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.1203, allocations: 38.56 kB / 446 MB, free: 7 MB / 282.7 MB Notification: Performance of pre-optimization done (n=9): time 1.172e-06/0.1203, allocations: 0 / 446 MB, free: 7 MB / 282.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003167/0.1206, allocations: 125.5 kB / 446.2 MB, free: 6.871 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.302e-05/0.1207, allocations: 114.8 kB / 446.3 MB, free: 6.734 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.578e-05/0.1208, allocations: 130 kB / 446.4 MB, free: 6.598 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.143e-05/0.1208, allocations: 25.7 kB / 446.4 MB, free: 6.566 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.963e-05/0.1209, allocations: 104 kB / 446.5 MB, free: 6.461 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.013e-05/0.1209, allocations: 7.938 kB / 446.5 MB, free: 6.453 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.139e-06/0.1209, allocations: 8.125 kB / 446.5 MB, free: 6.445 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.613e-05/0.121, allocations: 318.8 kB / 446.9 MB, free: 6.125 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.69e-05/0.121, allocations: 15.98 kB / 446.9 MB, free: 6.109 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.678e-05/0.1211, allocations: 75.66 kB / 446.9 MB, free: 6.008 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.254e-05/0.1212, allocations: 23.94 kB / 447 MB, free: 5.984 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1212, allocations: 0 / 447 MB, free: 5.984 MB / 282.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001748/0.1214, allocations: 113.4 kB / 447.1 MB, free: 5.867 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.892e-05/0.1214, allocations: 4 kB / 447.1 MB, free: 5.863 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.1214, allocations: 4 kB / 447.1 MB, free: 5.859 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.746e-05/0.1214, allocations: 4 kB / 447.1 MB, free: 5.855 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.222e-05/0.1215, allocations: 24.52 kB / 447.1 MB, free: 5.832 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.1215, allocations: 3.938 kB / 447.1 MB, free: 5.828 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.398e-05/0.1216, allocations: 15.95 kB / 447.1 MB, free: 5.812 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.1216, allocations: 4 kB / 447.1 MB, free: 5.809 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 8.072e-05/0.1217, allocations: 121.6 kB / 447.3 MB, free: 5.68 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.1218, allocations: 73.53 kB / 447.3 MB, free: 5.602 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.188e-05/0.1219, allocations: 16.3 kB / 447.3 MB, free: 5.582 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.1219, allocations: 4 kB / 447.4 MB, free: 5.578 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1219, allocations: 0 / 447.4 MB, free: 5.578 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1219, allocations: 4 kB / 447.4 MB, free: 5.574 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001534/0.1221, allocations: 185.5 kB / 447.5 MB, free: 5.344 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1221, allocations: 0 / 447.5 MB, free: 5.344 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.19e-05/0.1222, allocations: 19.98 kB / 447.6 MB, free: 5.324 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1222, allocations: 0 / 447.6 MB, free: 5.324 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.1222, allocations: 0 / 447.6 MB, free: 5.324 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.1222, allocations: 4 kB / 447.6 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1222, allocations: 0 / 447.6 MB, free: 5.32 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001916/0.1224, allocations: 217 kB / 447.8 MB, free: 5.086 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.219e-05/0.1224, allocations: 84.95 kB / 447.9 MB, free: 4.984 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.691e-05/0.1225, allocations: 4 kB / 447.9 MB, free: 4.98 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.809e-05/0.1225, allocations: 8 kB / 447.9 MB, free: 4.973 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.616e-05/0.1226, allocations: 3.938 kB / 447.9 MB, free: 4.969 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.893e-06/0.1226, allocations: 8.281 kB / 447.9 MB, free: 4.961 MB / 282.7 MB Notification: Performance of sorting global known variables: time 4.577e-05/0.1227, allocations: 103.2 kB / 448 MB, free: 4.859 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1227, allocations: 3.938 kB / 448 MB, free: 4.855 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002303/0.1229, allocations: 11.94 kB / 448 MB, free: 4.844 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.0003618/0.1233, allocations: 0.7374 MB / 448.7 MB, free: 4.074 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001674/0.1234, allocations: 59.84 kB / 448.8 MB, free: 4.016 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1235, allocations: 0.5625 kB / 448.8 MB, free: 4.016 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.607e-05/0.1235, allocations: 15.98 kB / 448.8 MB, free: 4 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.1239, allocations: 43.95 kB / 448.9 MB, free: 3.957 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008597/0.1248, allocations: 0.6171 MB / 449.5 MB, free: 3.262 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001537/0.1249, allocations: 0.6965 MB / 450.2 MB, free: 2.539 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.378e-05/0.125, allocations: 12.92 kB / 450.2 MB, free: 2.527 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.823e-05/0.125, allocations: 23.42 kB / 450.2 MB, free: 2.504 MB / 282.7 MB Notification: Performance of SimCode: time 3.71e-07/0.125, allocations: 0 / 450.2 MB, free: 2.504 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01327/0.1383, allocations: 1.872 MB / 452.1 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001851/0.1386, allocations: 195.2 kB / 452.3 MB, free: 420 kB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.544/1.682, allocations: 4 kB / 452.3 MB, free: 416 kB / 282.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)