Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_Ancillary_Saturation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_Ancillary_Saturation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001699/0.001699, allocations: 193.1 kB / 16.14 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 6.24/6.24, allocations: 205.1 MB / 222 MB, free: 4.77 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.3043/0.3043, allocations: 9.081 MB / 278.4 MB, free: 12.4 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 63.91 kB / 337.4 MB, free: 25.78 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09258/0.09381, allocations: 48.17 MB / 385.6 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation): time 0.0192/0.113, allocations: 18.47 MB / 404.1 MB, free: 7.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004312/0.1174, allocations: 4.942 MB / 409 MB, free: 2.062 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.285e-05/0.1175, allocations: 0 / 409 MB, free: 2.062 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008961/0.1184, allocations: 294.6 kB / 409.3 MB, free: 1.773 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001692/0.1201, allocations: 0.6154 MB / 409.9 MB, free: 1.156 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00465/0.1248, allocations: 1.494 MB / 411.4 MB, free: 15.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003789/0.1252, allocations: 175.1 kB / 411.6 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.127e-05/0.1253, allocations: 9.062 kB / 411.6 MB, free: 15.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002608/0.1255, allocations: 91.52 kB / 411.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.139e-05/0.1256, allocations: 55.72 kB / 411.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.396e-05/0.1256, allocations: 0 / 411.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006357/0.132, allocations: 3.106 MB / 414.8 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.687e-05/0.1321, allocations: 19.91 kB / 414.9 MB, free: 12.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001123/0.1322, allocations: 55.69 kB / 414.9 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002563/0.1347, allocations: 1.411 MB / 416.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.544e-06/0.1348, allocations: 4 kB / 416.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.1348, allocations: 0 / 416.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.119e-06/0.1348, allocations: 0 / 416.3 MB, free: 10.73 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0009729/0.1358, allocations: 0.6042 MB / 416.9 MB, free: 10.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.1358, allocations: 8.031 kB / 416.9 MB, free: 10.07 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.928e-05/0.1359, allocations: 50.48 kB / 417 MB, free: 10.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.891e-05/0.1359, allocations: 23.75 kB / 417 MB, free: 9.988 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001425/0.1361, allocations: 174.9 kB / 417.2 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.098e-06/0.1361, allocations: 0 / 417.2 MB, free: 9.777 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/0.1361, allocations: 8 kB / 417.2 MB, free: 9.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003283/0.1365, allocations: 197.5 kB / 417.4 MB, free: 9.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.343e-06/0.1365, allocations: 0 / 417.4 MB, free: 9.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.1365, allocations: 8 kB / 417.4 MB, free: 9.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.1365, allocations: 3.984 kB / 417.4 MB, free: 9.559 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003735/0.1369, allocations: 275.8 kB / 417.7 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000635/0.1375, allocations: 0.5105 MB / 418.2 MB, free: 8.727 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003254/0.1379, allocations: 250.4 kB / 418.4 MB, free: 8.473 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002106/0.1381, allocations: 201 kB / 418.6 MB, free: 8.273 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1743/0.3124, allocations: 7.211 MB / 425.8 MB, free: 48.1 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.3125, allocations: 36.77 kB / 425.9 MB, free: 48.06 MB / 318.1 MB Notification: Performance of pre-optimization done (n=35): time 3.045e-06/0.3125, allocations: 0 / 425.9 MB, free: 48.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.0009693/0.3135, allocations: 0.5623 MB / 426.4 MB, free: 47.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.3135, allocations: 56.47 kB / 426.5 MB, free: 47.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.596e-05/0.3136, allocations: 105.5 kB / 426.6 MB, free: 47.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.3136, allocations: 25.7 kB / 426.6 MB, free: 47.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.822e-05/0.3137, allocations: 86.67 kB / 426.7 MB, free: 47.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.909e-05/0.3138, allocations: 114.9 kB / 426.8 MB, free: 47.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.538e-05/0.3138, allocations: 40.09 kB / 426.8 MB, free: 47.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.363e-05/0.3139, allocations: 330.3 kB / 427.2 MB, free: 47.33 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002109/0.3141, allocations: 142.3 kB / 427.3 MB, free: 47.33 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002235/0.3143, allocations: 153.7 kB / 427.5 MB, free: 47.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004848/0.3148, allocations: 327.5 kB / 427.8 MB, free: 47.29 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.3149, allocations: 1.281 kB / 427.8 MB, free: 47.29 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000534/0.3154, allocations: 376.2 kB / 428.1 MB, free: 47.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.3154, allocations: 6.25 kB / 428.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3154, allocations: 2.438 kB / 428.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.3155, allocations: 1.188 kB / 428.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.3156, allocations: 25.22 kB / 428.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.3156, allocations: 0 / 428.2 MB, free: 47.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.614e-05/0.3157, allocations: 25.22 kB / 428.2 MB, free: 47.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.549e-05/0.3157, allocations: 13.62 kB / 428.2 MB, free: 47.1 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 7.729e-05/0.3158, allocations: 120.2 kB / 428.3 MB, free: 46.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.251e-05/0.3159, allocations: 16.97 kB / 428.4 MB, free: 46.97 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006696/0.3165, allocations: 419.6 kB / 428.8 MB, free: 46.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-05/0.3166, allocations: 5.484 kB / 428.8 MB, free: 46.79 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.3166, allocations: 0 / 428.8 MB, free: 46.79 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.3166, allocations: 5.328 kB / 428.8 MB, free: 46.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003212/0.3169, allocations: 299.2 kB / 429.1 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3169, allocations: 0 / 429.1 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001129/0.317, allocations: 29.56 kB / 429.1 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.3171, allocations: 1.75 kB / 429.1 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.3171, allocations: 1.609 kB / 429.1 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3171, allocations: 1.125 kB / 429.1 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.3171, allocations: 1.812 kB / 429.1 MB, free: 46.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006124/0.3177, allocations: 475.3 kB / 429.6 MB, free: 46.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.679e-05/0.3178, allocations: 109.1 kB / 429.7 MB, free: 46.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.3178, allocations: 5.984 kB / 429.7 MB, free: 46.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.474e-05/0.3179, allocations: 5.672 kB / 429.7 MB, free: 46.13 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.594e-05/0.318, allocations: 9.281 kB / 429.7 MB, free: 46.13 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.318, allocations: 11.44 kB / 429.7 MB, free: 46.13 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.833e-05/0.318, allocations: 81.92 kB / 429.8 MB, free: 46.05 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.318, allocations: 0 / 429.8 MB, free: 46.05 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001532/0.3196, allocations: 419.9 kB / 430.2 MB, free: 46.03 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.002862/0.3225, allocations: 1.562 MB / 431.8 MB, free: 45.12 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006466/0.3231, allocations: 360.6 kB / 432.1 MB, free: 44.97 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3231, allocations: 0 / 432.1 MB, free: 44.97 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002783/0.3234, allocations: 207.8 kB / 432.3 MB, free: 44.88 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005937/0.324, allocations: 64.48 kB / 432.4 MB, free: 44.87 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001229/0.3253, allocations: 0.6055 MB / 433 MB, free: 44.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001911/0.3255, allocations: 0.7114 MB / 433.7 MB, free: 43.78 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.947e-05/0.3256, allocations: 20.88 kB / 433.7 MB, free: 43.78 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.241e-05/0.3256, allocations: 43.12 kB / 433.8 MB, free: 43.75 MB / 318.1 MB Notification: Performance of SimCode: time 5e-07/0.3256, allocations: 0 / 433.8 MB, free: 43.75 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04139/0.367, allocations: 13.13 MB / 446.9 MB, free: 36.94 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001882/0.3673, allocations: 215.6 kB / 447.1 MB, free: 36.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.127/2.495, allocations: 0 / 447.1 MB, free: 36.68 MB / 318.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_Ancillary_Saturation_fmu --startTime=0 --stopTime=7 --timeout=50 --tolerance=1e-05 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_Ancillary_Saturation.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.Ancillary_Saturation.pipe 2>&1)