Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Media.Examples.WaterDerivativeCheck.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Media.Examples.WaterDerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Media_Examples_WaterDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Media.Examples.WaterDerivativeCheck,fileNamePrefix="IDEAS_dev_IDEAS_Media_Examples_WaterDerivativeCheck",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.006193/0.006193, allocations: 103.6 kB / 15.73 MB, free: 6.035 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.001276/0.001276, allocations: 195.6 kB / 16.67 MB, free: 5.969 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9387/0.9387, allocations: 135.1 MB / 425.7 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.91 kB / 0.5851 GB, free: 3.91 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4535/0.4547, allocations: 80.91 MB / 0.6641 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Media.Examples.WaterDerivativeCheck): time 0.001949/0.4567, allocations: 1.268 MB / 0.6654 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003117/0.4598, allocations: 3.265 MB / 0.6686 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.131e-05/0.4599, allocations: 0 / 0.6686 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.925e-05/0.4599, allocations: 0 / 0.6686 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.859e-05/0.46, allocations: 9.062 kB / 0.6686 GB, free: 3.566 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004883/0.4605, allocations: 105 kB / 0.6687 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.099e-05/0.4606, allocations: 33.5 kB / 0.6687 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.545e-05/0.4606, allocations: 2.812 kB / 0.6687 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.305e-05/0.4607, allocations: 21.39 kB / 0.6687 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.7e-05/0.4608, allocations: 17.44 kB / 0.6687 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.4608, allocations: 2.562 kB / 0.6687 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002221/0.461, allocations: 81.47 kB / 0.6688 GB, free: 3.402 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.343e-05/0.461, allocations: 5.25 kB / 0.6688 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.494e-05/0.4611, allocations: 23.12 kB / 0.6688 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001736/0.4612, allocations: 65.23 kB / 0.6689 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.4613, allocations: 0 / 0.6689 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.215e-06/0.4613, allocations: 4.875 kB / 0.6689 GB, free: 3.348 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.4613, allocations: 0 / 0.6689 GB, free: 3.348 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003486/0.4616, allocations: 348.4 kB / 0.6692 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.4617, allocations: 9.344 kB / 0.6693 GB, free: 2.977 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.632e-05/0.4617, allocations: 33.09 kB / 0.6693 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.104e-05/0.4618, allocations: 12.72 kB / 0.6693 GB, free: 2.93 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.127e-05/0.4619, allocations: 169.7 kB / 0.6695 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.284e-05/0.4619, allocations: 5.719 kB / 0.6695 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/0.4619, allocations: 3.469 kB / 0.6695 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001238/0.4621, allocations: 61.98 kB / 0.6695 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.4621, allocations: 0 / 0.6695 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.4621, allocations: 1.188 kB / 0.6695 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.4621, allocations: 5.234 kB / 0.6695 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.365e-05/0.4622, allocations: 18.02 kB / 0.6695 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001342/0.4623, allocations: 166 kB / 0.6697 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.962e-05/0.4624, allocations: 48.16 kB / 0.6698 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.012e-05/0.4624, allocations: 19.77 kB / 0.6698 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005764/0.463, allocations: 0.6024 MB / 0.6704 GB, free: 1.734 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.155e-05/0.463, allocations: 34.56 kB / 0.6704 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=5): time 1.302e-06/0.4631, allocations: 1.344 kB / 0.6704 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0005278/0.4636, allocations: 290.8 kB / 0.6707 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.845e-05/0.4636, allocations: 52.41 kB / 0.6707 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.95e-05/0.4637, allocations: 106.7 kB / 0.6708 GB, free: 1.234 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.4637, allocations: 25.7 kB / 0.6708 GB, free: 1.203 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.898e-05/0.4637, allocations: 97.55 kB / 0.6709 GB, free: 1.105 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.463e-05/0.4638, allocations: 27.44 kB / 0.671 GB, free: 1.082 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-05/0.4638, allocations: 29.55 kB / 0.671 GB, free: 1.055 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.817e-05/0.4638, allocations: 316.3 kB / 0.6713 GB, free: 0.7383 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.797e-05/0.4639, allocations: 15.27 kB / 0.6713 GB, free: 0.7305 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.945e-05/0.4639, allocations: 52.92 kB / 0.6714 GB, free: 0.6719 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.023e-05/0.464, allocations: 74.38 kB / 0.6714 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.464, allocations: 1.812 kB / 0.6714 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001168/0.4641, allocations: 94.2 kB / 0.6715 GB, free: 0.5391 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.4641, allocations: 9.375 kB / 0.6715 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.4642, allocations: 2.531 kB / 0.6715 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.4642, allocations: 1.25 kB / 0.6715 GB, free: 0.5352 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.395e-05/0.4642, allocations: 29.3 kB / 0.6716 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.111e-06/0.4643, allocations: 1.406 kB / 0.6716 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.54e-05/0.4643, allocations: 7.031 kB / 0.6716 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.4643, allocations: 2.438 kB / 0.6716 GB, free: 0.5195 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 5.187e-05/0.4644, allocations: 119 kB / 0.6717 GB, free: 408 kB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.628e-05/0.4644, allocations: 6.594 kB / 0.6717 GB, free: 404 kB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.408e-05/0.4644, allocations: 17.08 kB / 0.6717 GB, free: 392 kB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.4644, allocations: 1.438 kB / 0.6717 GB, free: 392 kB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.4644, allocations: 0 / 0.6717 GB, free: 392 kB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.4645, allocations: 4.219 kB / 0.6717 GB, free: 388 kB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001817/0.4646, allocations: 173.3 kB / 0.6719 GB, free: 180 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.4646, allocations: 5.25 kB / 0.6719 GB, free: 176 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.037e-05/0.4647, allocations: 16.38 kB / 0.6719 GB, free: 172 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.4647, allocations: 1.344 kB / 0.6719 GB, free: 172 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.4648, allocations: 3.984 kB / 0.6719 GB, free: 168 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.4648, allocations: 1.344 kB / 0.6719 GB, free: 168 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.4648, allocations: 4 kB / 0.6719 GB, free: 164 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001365/0.4649, allocations: 168.7 kB / 0.6721 GB, free: 8 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.138e-05/0.465, allocations: 87.89 kB / 0.6722 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.484e-05/0.465, allocations: 9.094 kB / 0.6722 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.4651, allocations: 2.75 kB / 0.6722 GB, free: 15.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.723e-05/0.4651, allocations: 10.02 kB / 0.6722 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.4651, allocations: 2.188 kB / 0.6722 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.155e-05/0.4652, allocations: 89.88 kB / 0.6723 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4652, allocations: 0 / 0.6723 GB, free: 15.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000228/0.4654, allocations: 10.75 kB / 0.6723 GB, free: 15.8 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * 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 (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0004271/0.4659, allocations: 0.7007 MB / 0.673 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001153/0.466, allocations: 46.25 kB / 0.673 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.466, allocations: 0 / 0.673 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 2.398e-05/0.466, allocations: 18.89 kB / 0.673 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.4663, allocations: 11.5 kB / 0.673 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001355/0.4677, allocations: 1.53 MB / 0.6745 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002416/0.4679, allocations: 0.6821 MB / 0.6752 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 4.795e-05/0.468, allocations: 15.59 kB / 0.6752 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.737e-05/0.468, allocations: 11.47 kB / 0.6752 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of SimCode: time 2.21e-07/0.468, allocations: 0 / 0.6752 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01978/0.4878, allocations: 1.664 MB / 0.6768 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.428/7.916, allocations: 13.08 kB / 0.6769 GB, free: 11.95 MB / 0.5137 GB (rm -f IDEAS_dev_IDEAS.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo IDEAS_dev_IDEAS.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Media.Examples.WaterDerivativeCheck.pipe >> ../files/IDEAS_dev_IDEAS.Media.Examples.WaterDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Media_Examples_WaterDerivativeCheck_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-08 IDEAS_dev_IDEAS_Media_Examples_WaterDerivativeCheck.fmu > IDEAS_dev_IDEAS.Media.Examples.WaterDerivativeCheck.pipe 2>&1)