Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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/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.TestRealSampler,fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestRealSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler,fileNamePrefix="Modelica_Synchronous_cpp_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.0008777/0.0008777, allocations: 178.6 kB / 16.77 MB, free: 4.926 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.207/1.207, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0007104/0.0007102, allocations: 88.94 kB / 271.3 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.06174/0.06174, allocations: 12.2 MB / 331.8 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003585/0.0003585, allocations: 12 kB / 392.2 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06429/0.06466, allocations: 50.29 MB / 442.5 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler): time 0.00141/0.06609, allocations: 1.467 MB / 444 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006644/0.06678, allocations: 0.4961 MB / 444.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.872e-05/0.06689, allocations: 4 kB / 444.5 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.067, allocations: 11.86 kB / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.353e-05/0.06706, allocations: 15.86 kB / 444.5 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.06733, allocations: 43.94 kB / 444.5 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001162/0.06746, allocations: 111.6 kB / 444.6 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.0676, allocations: 85.28 kB / 444.7 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.048e-05/0.0677, allocations: 39.8 kB / 444.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.025e-05/0.06778, allocations: 47.77 kB / 444.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.79e-05/0.0678, allocations: 0 / 444.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.428e-05/0.06783, allocations: 4 kB / 444.8 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.8e-05/0.06787, allocations: 31.84 kB / 444.8 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.717e-05/0.06793, allocations: 73.33 kB / 444.9 MB, free: 14.12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.769e-05/0.06803, allocations: 91.98 kB / 445 MB, free: 14.03 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.06804, allocations: 0 / 445 MB, free: 14.03 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.06804, allocations: 4 kB / 445 MB, free: 14.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.06805, allocations: 0 / 445 MB, free: 14.02 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.0004217/0.06848, allocations: 423 kB / 445.4 MB, free: 13.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.373e-05/0.06852, allocations: 8.031 kB / 445.4 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.534e-05/0.06856, allocations: 46.73 kB / 445.5 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.06859, allocations: 16.75 kB / 445.5 MB, free: 13.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001583/0.06876, allocations: 231.9 kB / 445.7 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.06877, allocations: 8.375 kB / 445.7 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.0688, allocations: 16.38 kB / 445.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004678/0.06927, allocations: 355.4 kB / 446.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.06929, allocations: 0 / 446.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.06931, allocations: 0 / 446.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.06933, allocations: 4 kB / 446.1 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001957/0.06953, allocations: 119.8 kB / 446.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003997/0.06994, allocations: 466.5 kB / 446.7 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.07027, allocations: 250.4 kB / 446.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.07043, allocations: 147.3 kB / 447.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.081e-05/0.07046, allocations: 0 / 447.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.188e-05/0.07048, allocations: 38.55 kB / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 1.122e-06/0.07048, allocations: 0 / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004843/0.07097, allocations: 281.2 kB / 447.4 MB, free: 11.42 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.905e-05/0.07102, allocations: 140.9 kB / 447.5 MB, free: 11.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.636e-05/0.07111, allocations: 154.2 kB / 447.7 MB, free: 11.09 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.178e-05/0.07112, allocations: 33.7 kB / 447.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.215e-05/0.07116, allocations: 111.9 kB / 447.8 MB, free: 10.94 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.825e-05/0.07118, allocations: 16.12 kB / 447.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-06/0.0712, allocations: 0 / 447.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.093e-05/0.07124, allocations: 326.8 kB / 448.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.896e-05/0.07133, allocations: 39.97 kB / 448.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001017/0.07143, allocations: 156.7 kB / 448.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001874/0.07163, allocations: 211.1 kB / 448.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.07164, allocations: 0 / 448.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002629/0.07191, allocations: 213.4 kB / 448.7 MB, free: 9.871 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.07193, allocations: 11.94 kB / 448.8 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.07194, allocations: 7.984 kB / 448.8 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.07195, allocations: 4 kB / 448.8 MB, free: 9.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000108/0.07207, allocations: 39.92 kB / 448.8 MB, free: 9.809 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.07208, allocations: 11.94 kB / 448.8 MB, free: 9.797 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.487e-05/0.07217, allocations: 27.83 kB / 448.8 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.089e-05/0.07219, allocations: 12.12 kB / 448.9 MB, free: 9.758 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.99e-05/0.07226, allocations: 154.4 kB / 449 MB, free: 9.598 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001882/0.07246, allocations: 169.4 kB / 449.2 MB, free: 9.426 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.627e-05/0.0725, allocations: 16.84 kB / 449.2 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.07252, allocations: 4 kB / 449.2 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.07253, allocations: 0 / 449.2 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.07253, allocations: 0 / 449.2 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001749/0.07271, allocations: 213.5 kB / 449.4 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.07272, allocations: 4 kB / 449.4 MB, free: 9.141 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001248/0.07285, allocations: 39.94 kB / 449.4 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.497e-06/0.07286, allocations: 7.938 kB / 449.4 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.07288, allocations: 0 / 449.4 MB, free: 9.094 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.395e-06/0.07289, allocations: 4 kB / 449.5 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.07289, allocations: 0 / 449.5 MB, free: 9.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002917/0.07319, allocations: 397.8 kB / 449.8 MB, free: 8.68 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.031e-05/0.07322, allocations: 92.94 kB / 449.9 MB, free: 8.57 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.96e-05/0.07324, allocations: 11.94 kB / 449.9 MB, free: 8.559 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001215/0.07337, allocations: 8 kB / 450 MB, free: 8.551 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.238e-05/0.07341, allocations: 7.984 kB / 450 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.07343, allocations: 4 kB / 450 MB, free: 8.539 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.484e-05/0.07348, allocations: 115.2 kB / 450.1 MB, free: 8.426 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.07348, allocations: 0 / 450.1 MB, free: 8.426 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002781/0.07377, allocations: 20 kB / 450.1 MB, free: 8.406 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 (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.00042/0.07419, allocations: 0.9345 MB / 451 MB, free: 7.438 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002375/0.07444, allocations: 151.7 kB / 451.2 MB, free: 7.289 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.07445, allocations: 0 / 451.2 MB, free: 7.289 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.211e-05/0.07452, allocations: 25.17 kB / 451.2 MB, free: 7.266 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000466/0.07499, allocations: 111.9 kB / 451.3 MB, free: 7.156 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001074/0.07608, allocations: 1.066 MB / 452.4 MB, free: 5.977 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.07621, allocations: 0.7399 MB / 453.1 MB, free: 5.211 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.829e-05/0.07628, allocations: 39.42 kB / 453.2 MB, free: 5.172 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.07628, allocations: 0 / 453.2 MB, free: 5.172 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.373/2.449, allocations: 2.158 MB / 455.3 MB, free: 3.012 MB / 298.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestRealSampler_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestRealSampler.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestRealSampler.pipe 2>&1)