Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.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.TestRealSampler,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestRealSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestRealSampler",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.00125/0.00125, allocations: 178.7 kB / 16.12 MB, free: 5.57 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.574/1.574, allocations: 205 MB / 221.9 MB, free: 9.156 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.0009142/0.0009142, allocations: 96.55 kB / 269.9 MB, free: 8.676 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.08937/0.08937, allocations: 12.57 MB / 330.4 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004492/0.0004496, allocations: 12 kB / 391.2 MB, free: 66.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1009, allocations: 49.98 MB / 441.1 MB, free: 16.29 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler): time 0.00197/0.103, allocations: 1.505 MB / 442.6 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.1041, allocations: 0.5269 MB / 443.2 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001775/0.1043, allocations: 3.938 kB / 443.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000186/0.1045, allocations: 15.92 kB / 443.2 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.702e-05/0.1046, allocations: 11.88 kB / 443.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004077/0.105, allocations: 59.86 kB / 443.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001675/0.1052, allocations: 107.6 kB / 443.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001805/0.1054, allocations: 81.31 kB / 443.4 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00012/0.1055, allocations: 43.77 kB / 443.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.638e-05/0.1056, allocations: 43.72 kB / 443.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.593e-05/0.1056, allocations: 4 kB / 443.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.727e-05/0.1056, allocations: 0 / 443.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.865e-05/0.1057, allocations: 31.86 kB / 443.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.806e-05/0.1058, allocations: 51.59 kB / 443.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.1059, allocations: 119.8 kB / 443.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1059, allocations: 0 / 443.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1059, allocations: 0 / 443.7 MB, free: 13.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.106, allocations: 0 / 443.7 MB, free: 13.68 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005731/0.1065, allocations: 423 kB / 444.1 MB, free: 13.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.1066, allocations: 8.031 kB / 444.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.969e-05/0.1066, allocations: 46.73 kB / 444.2 MB, free: 13.15 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.036e-05/0.1067, allocations: 20.75 kB / 444.2 MB, free: 13.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.1069, allocations: 231.9 kB / 444.4 MB, free: 12.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.107, allocations: 16.31 kB / 444.5 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.093e-05/0.107, allocations: 12.38 kB / 444.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005664/0.1076, allocations: 346.5 kB / 444.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.1076, allocations: 0 / 444.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.531e-05/0.1076, allocations: 11.98 kB / 444.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.193e-05/0.1076, allocations: 4 kB / 444.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002307/0.1079, allocations: 119.8 kB / 444.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005102/0.1084, allocations: 474.4 kB / 445.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003707/0.1088, allocations: 250.3 kB / 445.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000177/0.109, allocations: 135.4 kB / 445.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.725e-05/0.109, allocations: 0 / 445.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.109, allocations: 50.48 kB / 445.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 1.422e-06/0.1091, allocations: 0 / 445.8 MB, free: 11.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.0006109/0.1097, allocations: 281.7 kB / 446.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.034e-05/0.1098, allocations: 148.5 kB / 446.3 MB, free: 10.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001151/0.1099, allocations: 150.2 kB / 446.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.1099, allocations: 29.7 kB / 446.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.338e-05/0.11, allocations: 112 kB / 446.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.334e-05/0.11, allocations: 11.91 kB / 446.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.878e-05/0.1101, allocations: 21.7 kB / 446.6 MB, free: 10.53 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.915e-05/0.1102, allocations: 326.9 kB / 446.9 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.267e-05/0.1103, allocations: 39.97 kB / 446.9 MB, free: 10.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.1104, allocations: 154.4 kB / 447.1 MB, free: 9.961 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002336/0.1107, allocations: 215.2 kB / 447.3 MB, free: 9.695 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.1107, allocations: 0 / 447.3 MB, free: 9.695 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003156/0.111, allocations: 209 kB / 447.5 MB, free: 9.484 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.111, allocations: 11.94 kB / 447.5 MB, free: 9.473 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.356e-06/0.1111, allocations: 4 kB / 447.5 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.1111, allocations: 4 kB / 447.5 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001152/0.1112, allocations: 44.47 kB / 447.6 MB, free: 9.422 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.849e-06/0.1112, allocations: 11.94 kB / 447.6 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.494e-05/0.1113, allocations: 23.84 kB / 447.6 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.1113, allocations: 8 kB / 447.6 MB, free: 9.379 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.892e-05/0.1114, allocations: 149.7 kB / 447.7 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001962/0.1116, allocations: 157.5 kB / 447.9 MB, free: 9.062 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.579e-05/0.1117, allocations: 24.83 kB / 447.9 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.1117, allocations: 0 / 447.9 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.1117, allocations: 8.031 kB / 447.9 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1117, allocations: 0 / 447.9 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002095/0.1119, allocations: 213.7 kB / 448.1 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.112, allocations: 0 / 448.1 MB, free: 8.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001315/0.1121, allocations: 39.97 kB / 448.2 MB, free: 8.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.1121, allocations: 7.875 kB / 448.2 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.1121, allocations: 4 kB / 448.2 MB, free: 8.719 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.1121, allocations: 3.938 kB / 448.2 MB, free: 8.715 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.1121, allocations: 4 kB / 448.2 MB, free: 8.711 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003613/0.1125, allocations: 404.1 kB / 448.6 MB, free: 8.293 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.156e-05/0.1126, allocations: 92.95 kB / 448.7 MB, free: 8.184 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.535e-05/0.1126, allocations: 7.938 kB / 448.7 MB, free: 8.176 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.1127, allocations: 11.98 kB / 448.7 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.815e-05/0.1128, allocations: 4 kB / 448.7 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.1128, allocations: 4 kB / 448.7 MB, free: 8.156 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.651e-05/0.1128, allocations: 115.2 kB / 448.8 MB, free: 8.043 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1129, allocations: 0 / 448.8 MB, free: 8.043 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000304/0.1132, allocations: 27.91 kB / 448.9 MB, free: 8.016 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005139/0.1137, allocations: 0.924 MB / 449.8 MB, free: 7.055 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002739/0.114, allocations: 152.7 kB / 449.9 MB, free: 6.906 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.114, allocations: 4.125 kB / 449.9 MB, free: 6.902 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.609e-05/0.1141, allocations: 27.92 kB / 450 MB, free: 6.875 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004957/0.1146, allocations: 114 kB / 450.1 MB, free: 6.766 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/0.1164, allocations: 2.197 MB / 452.3 MB, free: 4.371 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001767/0.1166, allocations: 0.7438 MB / 453 MB, free: 3.602 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.631e-05/0.1167, allocations: 21.05 kB / 453 MB, free: 3.582 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.179e-05/0.1167, allocations: 43.42 kB / 453.1 MB, free: 3.539 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.1167, allocations: 3.938 kB / 453.1 MB, free: 3.535 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01311/0.1298, allocations: 2.799 MB / 455.9 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001478/0.13, allocations: 218.3 kB / 456.1 MB, free: 476 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.659/1.789, allocations: 0 / 456.1 MB, free: 476 kB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestRealSampler_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestRealSampler.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.pipe 2>&1)