Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.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.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide",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.0007684/0.0007684, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0008457/0.0008457, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.284/1.284, allocations: 205.4 MB / 222.1 MB, free: 5.379 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04169/0.04169, allocations: 9.068 MB / 279.5 MB, free: 12.12 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.0005019/0.0005019, allocations: 12 kB / 339.2 MB, free: 25.86 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08334/0.08386, allocations: 49.19 MB / 388.4 MB, free: 8.629 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.02118/0.1051, allocations: 16.11 MB / 404.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01632/0.1215, allocations: 15.83 MB / 420.4 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.1216, allocations: 0 / 420.4 MB, free: 8.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000628/0.1222, allocations: 231 kB / 420.6 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01536/0.1376, allocations: 5.194 MB / 425.8 MB, free: 3.168 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.139, allocations: 433.9 kB / 426.2 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002497/0.1393, allocations: 199 kB / 426.4 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.292e-05/0.1393, allocations: 13.05 kB / 426.4 MB, free: 2.531 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001809/0.1395, allocations: 83.59 kB / 426.5 MB, free: 2.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.1397, allocations: 59.72 kB / 426.5 MB, free: 2.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.1397, allocations: 0 / 426.5 MB, free: 2.391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2031/0.3428, allocations: 8.583 MB / 435.1 MB, free: 19.85 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.886e-05/0.3429, allocations: 18.36 kB / 435.1 MB, free: 19.85 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.495e-05/0.343, allocations: 46.67 kB / 435.2 MB, free: 19.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005035/0.348, allocations: 2.399 MB / 437.6 MB, free: 19.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.348, allocations: 0 / 437.6 MB, free: 19.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.348, allocations: 0 / 437.6 MB, free: 19.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.3481, allocations: 0 / 437.6 MB, free: 19.75 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.002575/0.3506, allocations: 0.8799 MB / 438.5 MB, free: 19.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.3507, allocations: 10.34 kB / 438.5 MB, free: 19.12 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.858e-05/0.3507, allocations: 37.03 kB / 438.5 MB, free: 19.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.3509, allocations: 25.22 kB / 438.5 MB, free: 19.08 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002085/0.3512, allocations: 200.5 kB / 438.7 MB, free: 18.88 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.614e-05/0.3512, allocations: 7.172 kB / 438.7 MB, free: 18.88 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.97e-05/0.3512, allocations: 4.344 kB / 438.7 MB, free: 18.88 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002243/0.3514, allocations: 131.5 kB / 438.9 MB, free: 18.83 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.3515, allocations: 2.844 kB / 438.9 MB, free: 18.83 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.3515, allocations: 9.453 kB / 438.9 MB, free: 18.83 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.3515, allocations: 9.656 kB / 438.9 MB, free: 18.83 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00017/0.3517, allocations: 93.58 kB / 439 MB, free: 18.83 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005924/0.3523, allocations: 0.5767 MB / 439.6 MB, free: 18.34 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002155/0.3525, allocations: 127.1 kB / 439.7 MB, free: 18.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.862e-05/0.3526, allocations: 83.34 kB / 439.8 MB, free: 18.28 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04645/0.3991, allocations: 32.34 MB / 472.1 MB, free: 4.125 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.3992, allocations: 37.94 kB / 472.1 MB, free: 4.086 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.554e-06/0.3992, allocations: 4 kB / 472.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.000561/0.3997, allocations: 231.7 kB / 472.4 MB, free: 4.012 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.884e-05/0.3998, allocations: 79.48 kB / 472.5 MB, free: 3.918 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.123e-05/0.3999, allocations: 120.9 kB / 472.6 MB, free: 3.816 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001211/0.4, allocations: 25.7 kB / 472.6 MB, free: 19.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.659e-05/0.4, allocations: 95.06 kB / 472.7 MB, free: 19.7 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.462e-05/0.4001, allocations: 82.92 kB / 472.8 MB, free: 19.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.288e-05/0.4001, allocations: 2.75 kB / 472.8 MB, free: 19.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.191e-05/0.4002, allocations: 327 kB / 473.1 MB, free: 19.32 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.81e-05/0.4003, allocations: 41.92 kB / 473.1 MB, free: 19.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.342e-05/0.4003, allocations: 66.78 kB / 473.2 MB, free: 19.29 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.071e-05/0.4004, allocations: 53.44 kB / 473.3 MB, free: 19.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.4004, allocations: 0 / 473.3 MB, free: 19.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001932/0.4006, allocations: 166 kB / 473.4 MB, free: 19.24 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/0.4006, allocations: 8 kB / 473.4 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.4007, allocations: 0 / 473.4 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.4007, allocations: 3.625 kB / 473.4 MB, free: 19.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.116e-05/0.4008, allocations: 21.33 kB / 473.4 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.4008, allocations: 3.688 kB / 473.4 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.247e-05/0.4009, allocations: 9.719 kB / 473.5 MB, free: 19.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.4009, allocations: 8.969 kB / 473.5 MB, free: 19.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (state_p.phase,state_h.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.614e-05/0.401, allocations: 121.2 kB / 473.6 MB, free: 19.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.651e-05/0.401, allocations: 14.64 kB / 473.6 MB, free: 19.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003621/0.4014, allocations: 310.4 kB / 473.9 MB, free: 19.02 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002187/0.4016, allocations: 243.4 kB / 474.1 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.4016, allocations: 0 / 474.1 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.4016, allocations: 0 / 474.1 MB, free: 18.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008194/0.4025, allocations: 0.7518 MB / 474.9 MB, free: 18.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.4025, allocations: 0 / 474.9 MB, free: 18.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001415/0.4026, allocations: 44.33 kB / 474.9 MB, free: 18.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.4026, allocations: 4 kB / 474.9 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.4027, allocations: 14.3 kB / 475 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.4027, allocations: 0 / 475 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.4027, allocations: 0 / 475 MB, free: 18.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004346/0.4031, allocations: 0.5252 MB / 475.5 MB, free: 18.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.672e-05/0.4032, allocations: 95.38 kB / 475.6 MB, free: 18.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.4032, allocations: 6.812 kB / 475.6 MB, free: 18.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.4033, allocations: 15.66 kB / 475.6 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.4034, allocations: 26.86 kB / 475.6 MB, free: 18.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.073e-05/0.4034, allocations: 3.562 kB / 475.6 MB, free: 18.08 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.755e-05/0.4034, allocations: 96.14 kB / 475.7 MB, free: 18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4035, allocations: 0 / 475.7 MB, free: 18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002908/0.4064, allocations: 0.9192 MB / 476.6 MB, free: 17.81 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (d_h_int,d_p_int) * Number of discrete variables: 4 (state_h.phase,$cse2.phase,state_p.phase,$cse1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.004293/0.4107, allocations: 2.419 MB / 479.1 MB, free: 16.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002998/0.411, allocations: 254.9 kB / 479.3 MB, free: 16.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.624e-06/0.411, allocations: 4 kB / 479.3 MB, free: 16.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.4111, allocations: 111.5 kB / 479.4 MB, free: 16.55 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008391/0.412, allocations: 150.8 kB / 479.6 MB, free: 16.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001892/0.4139, allocations: 1.42 MB / 481 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.4142, allocations: 0.7439 MB / 481.7 MB, free: 14.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000138/0.4144, allocations: 45.98 kB / 481.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.624e-05/0.4144, allocations: 59.86 kB / 481.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.4144, allocations: 0 / 481.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05055/0.465, allocations: 30.04 MB / 0.4999 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/0.4652, allocations: 207.9 kB / 0.5001 GB, free: 320 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.901/3.366, allocations: 0 / 0.5001 GB, free: 320 kB / 366.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesCarbondioxide.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide.pipe 2>&1) Environment - environmentSimulation: