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.001505/0.001505, 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.001204/0.001204, allocations: 196.4 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 1.349/1.349, allocations: 205.1 MB / 222 MB, free: 4.957 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04502/0.04502, allocations: 9.083 MB / 278.4 MB, free: 12.63 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.001373/0.001373, allocations: 59.91 kB / 337.4 MB, free: 25.8 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09094/0.09233, allocations: 48.17 MB / 385.6 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesCarbondioxide): time 0.01979/0.1122, allocations: 17.67 MB / 403.3 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01671/0.1289, allocations: 17.24 MB / 420.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.1291, allocations: 0 / 420.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.1302, allocations: 263.3 kB / 420.8 MB, free: 6.297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01538/0.1456, allocations: 5.458 MB / 426.2 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001386/0.147, allocations: 473.8 kB / 426.7 MB, free: 384 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002533/0.1472, allocations: 199 kB / 426.9 MB, free: 184 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.606e-05/0.1473, allocations: 13.11 kB / 426.9 MB, free: 168 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.1474, allocations: 91.53 kB / 427 MB, free: 76 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.02e-05/0.1475, allocations: 55.77 kB / 427 MB, free: 20 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.394e-05/0.1475, allocations: 4 kB / 427.1 MB, free: 16 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1806/0.3281, allocations: 9.653 MB / 436.7 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.816e-05/0.3282, allocations: 11.72 kB / 436.7 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001287/0.3283, allocations: 58.91 kB / 436.8 MB, free: 18.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01219/0.3405, allocations: 4.008 MB / 440.8 MB, free: 18.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3406, allocations: 0.9062 kB / 440.8 MB, free: 18.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3406, allocations: 0 / 440.8 MB, free: 18.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.3406, allocations: 0 / 440.8 MB, free: 18.16 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.002609/0.3432, allocations: 0.8928 MB / 441.7 MB, free: 17.49 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.3433, allocations: 9.875 kB / 441.7 MB, free: 17.49 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.306e-05/0.3433, allocations: 37.22 kB / 441.7 MB, free: 17.45 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001984/0.3435, allocations: 32.27 kB / 441.8 MB, free: 17.44 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001857/0.3437, allocations: 199 kB / 441.9 MB, free: 17.23 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.3438, allocations: 6.531 kB / 442 MB, free: 17.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.448e-05/0.3438, allocations: 5.594 kB / 442 MB, free: 17.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001734/0.344, allocations: 132.1 kB / 442.1 MB, free: 17.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.344, allocations: 1.5 kB / 442.1 MB, free: 17.16 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.548e-06/0.344, allocations: 0 / 442.1 MB, free: 17.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.168e-06/0.344, allocations: 5.812 kB / 442.1 MB, free: 17.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001165/0.3441, allocations: 95.2 kB / 442.2 MB, free: 17.15 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005178/0.3447, allocations: 0.578 MB / 442.8 MB, free: 16.63 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002036/0.3449, allocations: 130.5 kB / 442.9 MB, free: 16.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.053e-05/0.345, allocations: 77.16 kB / 443 MB, free: 16.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05626/0.4012, allocations: 33.17 MB / 476.1 MB, free: 16.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.162e-05/0.4013, allocations: 39.69 kB / 476.2 MB, free: 16.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 3.386e-06/0.4013, allocations: 0 / 476.2 MB, free: 16.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0007828/0.4021, allocations: 234.5 kB / 476.4 MB, free: 16.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.4022, allocations: 80.58 kB / 476.5 MB, free: 16.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.4023, allocations: 120.8 kB / 476.6 MB, free: 16.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.4023, allocations: 29.7 kB / 476.6 MB, free: 16.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.629e-05/0.4024, allocations: 87.48 kB / 476.7 MB, free: 16.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.266e-05/0.4025, allocations: 82.75 kB / 476.8 MB, free: 16.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.954e-05/0.4025, allocations: 35.98 kB / 476.8 MB, free: 16.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.4026, allocations: 326.1 kB / 477.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.393e-05/0.4027, allocations: 40.77 kB / 477.2 MB, free: 15.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.264e-05/0.4028, allocations: 69.89 kB / 477.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001712/0.403, allocations: 127.8 kB / 477.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.403, allocations: 0 / 477.4 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002418/0.4032, allocations: 168 kB / 477.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/0.4033, allocations: 4 kB / 477.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.4033, allocations: 5.469 kB / 477.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.4033, allocations: 4 kB / 477.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.224e-05/0.4034, allocations: 17.44 kB / 477.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.4034, allocations: 3.938 kB / 477.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.543e-05/0.4035, allocations: 14.34 kB / 477.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.789e-05/0.4036, allocations: 11.98 kB / 477.6 MB, free: 15.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.545e-05/0.4037, allocations: 114.9 kB / 477.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.23e-05/0.4037, allocations: 11.09 kB / 477.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004465/0.4042, allocations: 319.3 kB / 478 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002537/0.4044, allocations: 241.6 kB / 478.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.4044, allocations: 3.938 kB / 478.3 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.4045, allocations: 7.984 kB / 478.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007783/0.4052, allocations: 0.7496 MB / 479 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.4053, allocations: 0 / 479 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.4054, allocations: 45.27 kB / 479.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.4054, allocations: 4 kB / 479.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.4054, allocations: 5.062 kB / 479.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.4054, allocations: 4 kB / 479.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4055, allocations: 0 / 479.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004783/0.4059, allocations: 0.5323 MB / 479.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.066e-05/0.406, allocations: 92.86 kB / 479.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.757e-05/0.406, allocations: 11.92 kB / 479.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001278/0.4062, allocations: 0 / 479.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.962e-05/0.4062, allocations: 19.8 kB / 479.8 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.136e-05/0.4062, allocations: 8 kB / 479.8 MB, free: 13.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.424e-05/0.4063, allocations: 102.6 kB / 479.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4063, allocations: 2.188 kB / 479.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003109/0.4094, allocations: 0.9194 MB / 480.8 MB, free: 12.94 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 (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.005782/0.4152, allocations: 2.428 MB / 483.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003934/0.4156, allocations: 245.5 kB / 483.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4156, allocations: 1.422 kB / 483.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.4158, allocations: 126.6 kB / 483.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009693/0.4168, allocations: 140.5 kB / 483.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004286/0.4211, allocations: 2.489 MB / 486.2 MB, free: 8.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003453/0.4214, allocations: 0.7331 MB / 486.9 MB, free: 7.352 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001727/0.4216, allocations: 37.97 kB / 487 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.583e-05/0.4217, allocations: 69.66 kB / 487 MB, free: 7.277 MB / 350.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4217, allocations: 0 / 487 MB, free: 7.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.989/1.411, allocations: 30.36 MB / 0.5053 GB, free: 9.062 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002809/1.411, allocations: 235.7 kB / 0.5055 GB, free: 8.793 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.663/5.075, allocations: 0 / 0.5055 GB, free: 8.793 MB / 382.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/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)