Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfWater.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",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.001189/0.001189, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001273/0.001273, allocations: 194.6 kB / 16.14 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1929/0.1929, allocations: 15.32 MB / 305.3 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 59.91 kB / 369.7 MB, free: 4.348 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09517/0.09635, allocations: 53.61 MB / 423.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004587/0.101, allocations: 3.761 MB / 427.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005057/0.106, allocations: 4.741 MB / 431.9 MB, free: 6.145 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003598/0.1064, allocations: 11.94 kB / 431.9 MB, free: 6.133 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003562/0.1068, allocations: 95.28 kB / 432 MB, free: 6.039 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008971/0.1078, allocations: 397.7 kB / 432.4 MB, free: 5.648 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009722/0.1087, allocations: 469.6 kB / 432.8 MB, free: 5.188 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004996/0.1092, allocations: 0.5493 MB / 433.4 MB, free: 4.637 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003911/0.1096, allocations: 314.2 kB / 433.7 MB, free: 4.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000341/0.11, allocations: 279.1 kB / 433.9 MB, free: 4.047 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000397/0.1104, allocations: 298.8 kB / 434.2 MB, free: 3.754 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.421e-05/0.1105, allocations: 32 kB / 434.3 MB, free: 3.723 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009475/0.1114, allocations: 463.2 kB / 434.7 MB, free: 3.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.1116, allocations: 99.61 kB / 434.8 MB, free: 3.172 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002198/0.1118, allocations: 262.8 kB / 435.1 MB, free: 2.914 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001068/0.1129, allocations: 0.9809 MB / 436 MB, free: 1.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1129, allocations: 4 kB / 436.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.81e-07/0.1129, allocations: 0 / 436.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.1129, allocations: 0 / 436.1 MB, free: 1.926 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.00147/0.1144, allocations: 0.8615 MB / 436.9 MB, free: 1.016 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.1144, allocations: 12.03 kB / 436.9 MB, free: 1.004 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001089/0.1145, allocations: 82.72 kB / 437 MB, free: 0.9141 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003383/0.1149, allocations: 95.98 kB / 437.1 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004179/0.1153, allocations: 358.3 kB / 437.4 MB, free: 444 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.916e-05/0.1154, allocations: 37.38 kB / 437.5 MB, free: 408 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.324e-05/0.1154, allocations: 52.28 kB / 437.5 MB, free: 356 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1683/0.2837, allocations: 447.5 kB / 438 MB, free: 53.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.2838, allocations: 0 / 438 MB, free: 53.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.347e-05/0.2838, allocations: 20.12 kB / 438 MB, free: 53.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.3e-05/0.2839, allocations: 12.88 kB / 438 MB, free: 53.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007545/0.2846, allocations: 0.5113 MB / 438.5 MB, free: 53.45 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001955/0.2866, allocations: 1.53 MB / 440 MB, free: 52.9 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006246/0.2872, allocations: 368.5 kB / 440.4 MB, free: 52.88 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001537/0.2874, allocations: 119.2 kB / 440.5 MB, free: 52.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001631/0.289, allocations: 1.57 MB / 442.1 MB, free: 51.79 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.436e-05/0.2891, allocations: 37.22 kB / 442.1 MB, free: 51.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.343e-06/0.2891, allocations: 0 / 442.1 MB, free: 51.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01459/0.3037, allocations: 2.336 MB / 444.5 MB, free: 51.17 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.766e-05/0.3037, allocations: 60.22 kB / 444.5 MB, free: 51.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002546/0.304, allocations: 289.2 kB / 444.8 MB, free: 51 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.666e-05/0.304, allocations: 30.89 kB / 444.8 MB, free: 50.97 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.3041, allocations: 276.3 kB / 445.1 MB, free: 50.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.274e-05/0.3042, allocations: 114 kB / 445.2 MB, free: 50.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.3043, allocations: 87.27 kB / 445.3 MB, free: 50.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.625e-05/0.3044, allocations: 343.7 kB / 445.6 MB, free: 50.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001954/0.3046, allocations: 136.2 kB / 445.8 MB, free: 50.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.3048, allocations: 266.1 kB / 446 MB, free: 50.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004441/0.3053, allocations: 425.1 kB / 446.4 MB, free: 50.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.3053, allocations: 1.531 kB / 446.4 MB, free: 50.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00391/0.3092, allocations: 0.8318 MB / 447.3 MB, free: 49.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.3092, allocations: 6.469 kB / 447.3 MB, free: 49.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.3092, allocations: 6.562 kB / 447.3 MB, free: 49.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003638/0.3129, allocations: 400.2 kB / 447.7 MB, free: 49.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002366/0.3131, allocations: 84.03 kB / 447.8 MB, free: 49.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00556/0.3187, allocations: 3.707 MB / 451.5 MB, free: 46.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/0.3191, allocations: 29.56 kB / 451.5 MB, free: 46.72 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.3192, allocations: 24.23 kB / 451.5 MB, free: 46.72 MB / 366.1 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 (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001971/0.3194, allocations: 172 kB / 451.7 MB, free: 46.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-05/0.3194, allocations: 34 kB / 451.7 MB, free: 46.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004951/0.3244, allocations: 0.8361 MB / 452.6 MB, free: 46.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3244, allocations: 6.766 kB / 452.6 MB, free: 46.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3244, allocations: 6.297 kB / 452.6 MB, free: 46.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.3244, allocations: 3.938 kB / 452.6 MB, free: 46.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000602/0.325, allocations: 0.6319 MB / 453.2 MB, free: 45.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.3251, allocations: 0 / 453.2 MB, free: 45.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001627/0.3252, allocations: 51.03 kB / 453.3 MB, free: 45.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004576/0.3298, allocations: 491.3 kB / 453.7 MB, free: 45.74 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/0.3299, allocations: 14.41 kB / 453.8 MB, free: 45.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005805/0.3357, allocations: 4.915 MB / 458.7 MB, free: 41.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.634e-06/0.3357, allocations: 0 / 458.7 MB, free: 41.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005138/0.3408, allocations: 1.132 MB / 459.8 MB, free: 40.82 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.459e-05/0.3409, allocations: 109.6 kB / 459.9 MB, free: 40.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.595e-05/0.341, allocations: 14.44 kB / 459.9 MB, free: 40.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003075/0.3413, allocations: 13.62 kB / 459.9 MB, free: 40.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.3414, allocations: 43.91 kB / 460 MB, free: 40.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.563e-05/0.3415, allocations: 20.17 kB / 460 MB, free: 40.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001709/0.3417, allocations: 210 kB / 460.2 MB, free: 40.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3417, allocations: 0 / 460.2 MB, free: 40.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007907/0.3425, allocations: 237.8 kB / 460.4 MB, free: 40.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (liquidWater.amountOfBonds,liquidWater.logn) * 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 (29): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005681/0.3482, allocations: 1.839 MB / 462.3 MB, free: 39.46 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001148/0.3493, allocations: 0.683 MB / 463 MB, free: 39.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3493, allocations: 3.594 kB / 463 MB, free: 39.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007508/0.3501, allocations: 0.6174 MB / 463.6 MB, free: 38.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006758/0.3508, allocations: 94.84 kB / 463.7 MB, free: 38.62 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.362, allocations: 4.805 MB / 468.5 MB, free: 35.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.3623, allocations: 0.8349 MB / 469.3 MB, free: 34.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002869/0.3626, allocations: 67.23 kB / 469.4 MB, free: 34.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002079/0.3628, allocations: 174.9 kB / 469.5 MB, free: 34.8 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3628, allocations: 0 / 469.5 MB, free: 34.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03267/0.3955, allocations: 14.55 MB / 484.1 MB, free: 32.28 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001768/0.3957, allocations: 214.3 kB / 484.3 MB, free: 32.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.033/2.429, allocations: 5 kB / 484.3 MB, free: 32.02 MB / 366.1 MB (rm -f Chemical_Chemical.Examples.HeatingOfWater.pipe ; mkfifo Chemical_Chemical.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HeatingOfWater.pipe >> ../files/Chemical_Chemical.Examples.HeatingOfWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_HeatingOfWater_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_HeatingOfWater.fmu > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1)