Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.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.CheckDerivativesButane,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Validation.CheckDerivativesButane,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane",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.0007383/0.0007387, allocations: 84.38 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.0008348/0.0008348, 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.242/1.242, allocations: 205.4 MB / 222.1 MB, free: 5.633 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04271/0.04271, allocations: 9.067 MB / 279.5 MB, free: 12.24 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.000464/0.000464, allocations: 12 kB / 339.2 MB, free: 25.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08784/0.08831, allocations: 49.18 MB / 388.4 MB, free: 8.656 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Validation.CheckDerivativesButane): time 0.01672/0.1051, allocations: 16.1 MB / 404.5 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01534/0.1205, allocations: 15.83 MB / 420.3 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.703e-05/0.1206, allocations: 0 / 420.3 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006228/0.1212, allocations: 234.9 kB / 420.6 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01282/0.1341, allocations: 4.989 MB / 425.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.1355, allocations: 441.8 kB / 426 MB, free: 2.973 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002549/0.1357, allocations: 199 kB / 426.2 MB, free: 2.777 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.301e-05/0.1358, allocations: 9.062 kB / 426.2 MB, free: 2.766 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.136, allocations: 83.59 kB / 426.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.1361, allocations: 63.77 kB / 426.3 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.419e-05/0.1361, allocations: 4 kB / 426.4 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1915/0.3276, allocations: 8.15 MB / 434.5 MB, free: 19.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.512e-05/0.3277, allocations: 12.98 kB / 434.5 MB, free: 19.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.075e-05/0.3278, allocations: 47.92 kB / 434.6 MB, free: 19.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004633/0.3324, allocations: 2.344 MB / 436.9 MB, free: 19.57 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3324, allocations: 0 / 436.9 MB, free: 19.57 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3324, allocations: 0.5625 kB / 436.9 MB, free: 19.57 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.3324, allocations: 2.594 kB / 436.9 MB, free: 19.57 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.002257/0.3347, allocations: 0.876 MB / 437.8 MB, free: 18.95 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.3348, allocations: 8.562 kB / 437.8 MB, free: 18.95 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.734e-05/0.3348, allocations: 44.2 kB / 437.8 MB, free: 18.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001701/0.335, allocations: 21.03 kB / 437.9 MB, free: 18.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001795/0.3352, allocations: 198.4 kB / 438 MB, free: 18.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.3352, allocations: 5.344 kB / 438.1 MB, free: 18.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.3352, allocations: 8.594 kB / 438.1 MB, free: 18.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001886/0.3354, allocations: 131.2 kB / 438.2 MB, free: 18.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.3354, allocations: 0 / 438.2 MB, free: 18.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.051e-05/0.3354, allocations: 2.359 kB / 438.2 MB, free: 18.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.3355, allocations: 4.047 kB / 438.2 MB, free: 18.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000117/0.3356, allocations: 100.4 kB / 438.3 MB, free: 18.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005196/0.3361, allocations: 0.5831 MB / 438.9 MB, free: 18.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.3363, allocations: 123.1 kB / 439 MB, free: 18.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.115e-05/0.3364, allocations: 80.22 kB / 439.1 MB, free: 18.1 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04854/0.385, allocations: 32.34 MB / 471.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.3851, allocations: 33.75 kB / 471.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.495e-06/0.3851, allocations: 7.562 kB / 471.5 MB, free: 4.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005708/0.3856, allocations: 232.5 kB / 471.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.3858, allocations: 88.41 kB / 471.8 MB, free: 20.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.869e-05/0.3859, allocations: 115.2 kB / 471.9 MB, free: 19.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.3859, allocations: 29.27 kB / 471.9 MB, free: 19.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.266e-05/0.386, allocations: 87.83 kB / 472 MB, free: 19.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.873e-05/0.386, allocations: 81.38 kB / 472.1 MB, free: 19.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.492e-06/0.386, allocations: 3.312 kB / 472.1 MB, free: 19.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.869e-05/0.3861, allocations: 325 kB / 472.4 MB, free: 19.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.851e-05/0.3862, allocations: 46.08 kB / 472.4 MB, free: 19.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.276e-05/0.3863, allocations: 66.31 kB / 472.5 MB, free: 19.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.242e-05/0.3864, allocations: 51.88 kB / 472.6 MB, free: 19.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3864, allocations: 1.859 kB / 472.6 MB, free: 19.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002146/0.3866, allocations: 169.3 kB / 472.7 MB, free: 19.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.3866, allocations: 5.906 kB / 472.7 MB, free: 19.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.3866, allocations: 0 / 472.7 MB, free: 19.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.3866, allocations: 10.66 kB / 472.7 MB, free: 19.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.972e-05/0.3867, allocations: 14.25 kB / 472.8 MB, free: 19.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.902e-06/0.3867, allocations: 7.547 kB / 472.8 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.479e-05/0.3868, allocations: 7.531 kB / 472.8 MB, free: 19.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.3868, allocations: 4.875 kB / 472.8 MB, free: 19.4 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.07e-05/0.3869, allocations: 126.1 kB / 472.9 MB, free: 19.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.676e-05/0.387, allocations: 13.27 kB / 472.9 MB, free: 19.27 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003618/0.3873, allocations: 307.5 kB / 473.2 MB, free: 19.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002184/0.3876, allocations: 241.1 kB / 473.4 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3876, allocations: 0 / 473.4 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3876, allocations: 3.984 kB / 473.5 MB, free: 19.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007429/0.3883, allocations: 0.7597 MB / 474.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.3884, allocations: 0 / 474.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.3885, allocations: 39.2 kB / 474.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3885, allocations: 4 kB / 474.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.346e-05/0.3885, allocations: 7.844 kB / 474.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3885, allocations: 2.094 kB / 474.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3885, allocations: 0 / 474.3 MB, free: 18.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004717/0.389, allocations: 0.5212 MB / 474.8 MB, free: 18.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.732e-05/0.3891, allocations: 101.3 kB / 474.9 MB, free: 18.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.3891, allocations: 4.312 kB / 474.9 MB, free: 18.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.3893, allocations: 17.84 kB / 474.9 MB, free: 18.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.856e-05/0.3893, allocations: 22.72 kB / 474.9 MB, free: 18.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.3893, allocations: 6.281 kB / 474.9 MB, free: 18.26 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.791e-05/0.3894, allocations: 97.45 kB / 475 MB, free: 18.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3894, allocations: 0 / 475 MB, free: 18.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002884/0.3923, allocations: 0.9228 MB / 476 MB, free: 17.99 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.0045/0.3968, allocations: 2.377 MB / 478.3 MB, free: 16.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003194/0.3971, allocations: 247.9 kB / 478.6 MB, free: 16.76 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3971, allocations: 0 / 478.6 MB, free: 16.76 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001128/0.3972, allocations: 122.4 kB / 478.7 MB, free: 16.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008296/0.3981, allocations: 139.6 kB / 478.8 MB, free: 16.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/0.4002, allocations: 1.421 MB / 480.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.4005, allocations: 0.7356 MB / 481 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001364/0.4006, allocations: 43.2 kB / 481 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.85e-05/0.4007, allocations: 73.31 kB / 481.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4007, allocations: 0 / 481.1 MB, free: 14.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05112/0.4518, allocations: 29.96 MB / 0.4991 GB, free: 1.16 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000214/0.4521, allocations: 195.3 kB / 0.4993 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.732/3.184, allocations: 0 / 0.4993 GB, free: 0.9219 MB / 366.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-10 HelmholtzMedia_HelmholtzMedia_Examples_Validation_CheckDerivativesButane.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Validation.CheckDerivativesButane.pipe 2>&1) Environment - environmentSimulation: